RE: Sorting by item ... of each and item ... of each

2023-09-05 Thread Ralph DiMola via use-livecode
You can at least detect if the sorting function has failed using a global variable. global s1 command test1 local t1 --put "10,9,8,7,6,5,4,3,2,1" into t1 -- This line will not show an error put "10,9,8,7a,6,5,4,3,2,1" into t1 -- This line will show an error put 0 into s1 so

Re: Sorting by item ... of each and item ... of each

2023-09-05 Thread Craig Newman via use-livecode
I should have given better context. I one only sorts the same field numeric, one gets: 123 132 213 231 312 321 Which is correct given the list of whole numbers in question. The stable sort allows one to then sort by char 3 of each, to get the result in the “compound” sort below. So am I

Re: Sorting by item ... of each and item ... of each

2023-09-05 Thread Craig Newman via use-livecode
I may be simply misunderstanding… Since HC days, one could concatenate sort criteria using the “&” character, and obtain multiple stable sorts in one go. In LC as well, since given, in a field 1: 231 312 123 213 321 132 and in a button somewhere: on mouseUp get fld 1 sort it numeric by