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
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
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