> Am 21.02.2023 um 18:01 schrieb use-livecode-requ...@lists.runrev.com: > > Send use-livecode mailing list submissions to > use-livecode@lists.runrev.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.runrev.com/mailman/listinfo/use-livecode > or, via email, send a message with subject or body 'help' to > use-livecode-requ...@lists.runrev.com > > You can reach the person managing the list at > use-livecode-ow...@lists.runrev.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of use-livecode digest..." > > > you can find the archives for this list at: > > http://lists.runrev.com/pipermail/use-livecode/ > > and search them using this link: > > http://www.google.com/advanced_search?q=site:lists.runrev.com > > > Today's Topics: > > 1. Sort list alphabetically- ignoring first character if it is a > space (David V Glasgow) > 2. Re: Sort list alphabetically- ignoring first character if it > is a space (Niggemann, Bernd) > 3. Re: Sort list alphabetically- ignoring first character if it > is a space (Mark Wieder) > 4. Re: Sort list alphabetically- ignoring first character if it > is a space (Richard Gaskin) > 5. Re: Sort list alphabetically- ignoring first character if it > is a space (Bob Sneidar) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 20 Feb 2023 21:15:50 +0000 > From: David V Glasgow <dvglas...@gmail.com> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Subject: Sort list alphabetically- ignoring first character if it is a > space > Message-ID: <b53f47b5-8db4-464c-a253-bcfd8f62c...@gmail.com> > Content-Type: text/plain; charset=utf-8 > > 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 > > > ------------------------------ > > Message: 2 > Date: Mon, 20 Feb 2023 21:29:46 +0000 > From: "Niggemann, Bernd" <bernd.niggem...@uni-wh.de> > To: "use-livecode@lists.runrev.com" <use-livecode@lists.runrev.com> > Subject: Re: Sort list alphabetically- ignoring first character if it > is a space > Message-ID: <f3d4548d-08fc-4bc1-a21c-7c818e0d3...@uni-wh.de> > Content-Type: text/plain; charset="us-ascii" > >> 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 > > > ------------------------------ > > Message: 3 > Date: Mon, 20 Feb 2023 14:11:01 -0800 > From: Mark Wieder <ahsoftw...@sonic.net> > To: "Niggemann, Bernd via use-livecode" > <use-livecode@lists.runrev.com> > Subject: Re: Sort list alphabetically- ignoring first character if it > is a space > Message-ID: <78cc5c34-0046-29e7-16d8-22378b58c...@sonic.net> > Content-Type: text/plain; charset=UTF-8; format=flowed > >> 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 >> >> <g> >> >> -- >> Mark Wieder >> ahsoftw...@gmail.com >> >> >> >> >> ------------------------------ >> >> Message: 4 >> Date: Mon, 20 Feb 2023 15:14:31 -0800 >> From: Richard Gaskin <ambassa...@fourthworld.com> >> To: use-livecode@lists.runrev.com >> Subject: Re: Sort list alphabetically- ignoring first character if it >> is a space >> Message-ID: <f34c3fdf-1f7d-4355-1f6d-b3169a7a0...@fourthworld.com> >> Content-Type: text/plain; charset=UTF-8; format=flowed >> >> 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.com http://www.FourthWorld.com > > > > ------------------------------ > > Message: 5 > Date: Tue, 21 Feb 2023 04:35:41 +0000 > From: Bob Sneidar <bobsnei...@iotecdigital.com> > To: How to use LiveCode <use-livecode@lists.runrev.com> > Subject: Re: Sort list alphabetically- ignoring first character if it > is a space > Message-ID: <d53ae70b-b48d-4283-a4e0-615bbdd4b...@iotecdigital.com> > Content-Type: text/plain; charset="utf-8" > > Sort by word 1 to -1 of each > > Sent from my iPhone > >> On Feb 20, 2023, at 14:12, Mark Wieder via use-livecode >> <use-livecode@lists.runrev.com> 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 >> >> <g> >> >> -- >> 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 > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-livecode > > > ------------------------------ > > End of use-livecode Digest, Vol 233, Issue 13 > *********************************************
_______________________________________________ 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