Sort so that "Hello" is always before "hello"

Bob Sneidar bobsneidar at iotecdigital.com
Thu May 18 20:08:40 CEST 2017


doesn't look like there is a command to do this. Try creating an sqLite database in memory (or on disk it doesn't matter) called tempdata with a column called textdata, adding your words/items/lines to the database, then query the database with select textdata from template order by textdata. 

You could create this as a function passing the arguments pText, pChunkType, pOrder. pText contains your text to be sorted, pChunkType could be lines, items or words, and pOrder would be ascending or descending. 

Presto! Your own case sensitive sort function! 

Bob S




> On May 18, 2017, at 10:10 , Kaveh Bazargan via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I have the following lines when a list of words is sorted:
> 
> Hello
> hello
> Hello
> hello
> hello
> 
> so there is no hierarchy between upper and lower case chars. I want caps to
> go first. How do i do that pls?
> 
> -- 
> Kaveh Bazargan
> Director
> River Valley Technologies
> @kaveh1000
> +44 7771 824 111
> www.rivervalleytechnologies.com




More information about the use-livecode mailing list