Re: Sort list alphabetically- ignoring first character if it is a space
Sort by word 1 to -1 of each Sent from my iPhone > On Feb 20, 2023, at 14:12, Mark Wieder via use-livecode > wrote: > > On 2/20/23 13:29, Niggemann, Bernd via use-livecode wrote: > > ...or to make ChatGPT happy: > > sort tData ascending by word 1 to -1 of each # ignoring spaces > > > > -- > Mark Wieder > ahsoftw...@gmail.com > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sort list alphabetically- ignoring first character if it is a space
David V Glasgow wrote: > I am trying to alphabetically sort a list of unique strings, some of > which have a leading space character. I need these to sort as if the > second character is the first character rather than all space prefixed > strings being bunched together. Would using the word delimited type help with this? e.g.: sort lines of field 1 by word 1 to -1 of each > I just had a hilarious conversation with ChatGPT on this challenge. > We ended up having a disagreement about whether a keyword “ignoring” > exists in Livecode. Please tell me it doesn’t. I don't recall having seen an "ignoring" keyword in LiveCode. But I have seen countless articles about Vincent Cerf, Mark Cuban, Steve Wozniak, and a great many others much smarter than me cautioning against making any investment in ChatGPT for serious work involving precision and accuracy. Once you see it's a caffeinated auto-complete, the useful and less useful applications for a tool that literally can't understand a single word it spits out become clearer. This background from Stephen Wolfram is helpful: https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-doing-and-why-does-it-work/ ChatGPT is fascinating, but since this isn't the first time we've been through the Gartner hype cycle with an "AI" tech (I first joined AAAI back when Expert Systems were a thing), even more fascinating has been watching humans forget that the Trough of Disillusionment will happen before we eventually reach the Plateau of Productivity. https://en.wikipedia.org/wiki/Gartner_hype_cycle -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sort list alphabetically- ignoring first character if it is a space
On 2/20/23 13:29, Niggemann, Bernd via use-livecode wrote: ...or to make ChatGPT happy: sort tData ascending by word 1 to -1 of each # ignoring spaces -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Sort list alphabetically- ignoring first character if it is a space
> David V Glasgow wrote: > I am trying to alphabetically sort a list of unique strings, some of which > have > a leading space character. I need these to sort as if the second character > is > the first character rather than all space prefixed strings being bunched > together. Would sort tData ascending by word 1 to -1 of each work for you? Kind regards Bernd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Sort list alphabetically- ignoring first character if it is a space
I am trying to alphabetically sort a list of unique strings, some of which have a leading space character. I need these to sort as if the second character is the first character rather than all space prefixed strings being bunched together. I just had a hilarious conversation with ChatGPT on this challenge We ended up having a disagreement about whether a keyword “ignoring” exists in Livecode. Please tell me it doesn’t. (although even if it does, I don’t think it helps me with my task) Anyway, I did learn something, but not whether there is an elegant way to do this. I can see how I could extract strings starting with a space, replace the first character with the second character, combine the lists, sort, then replace the doctored strings with the space prefixed originals. However, I couldn’t help but wonder if there is a better solution. Anyone? Best wishes, David G ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode