I think it is putting all non-numeric values first as unsortable, then the sortable items next. This seems to be the case because:
put "b,4,2,a,3,6" into tList;sort items of tList numeric ascending;put tList Results in: b,a,2,3,4,6 This implies that the non-numeric items are not being sorted at all, just shuttled to the front of the line. Bob S > On Sep 7, 2023, at 8:46 AM, Craig Newman via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Bob, > > If you remove the “numeric” the result is “2,3,4,6,a”. > > To me this implies that ASCII values are used as the sortKey. But that begs > the issue why, as in your post, with “numeric” included, the “a” appears > first. What makes the “a” a lower "numeric" value than “2”? > > Craig > >> On Sep 7, 2023, at 11:19 AM, Bob Sneidar via use-livecode >> <use-livecode@lists.runrev.com> wrote: >> >> put "4,2,a,3,6" into tList;sort items of tList numeric ascending;put tList _______________________________________________ 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