Sort Numbers as Numeric

Kelly Burgess kellyb at montana.com
Sat Jun 12 12:46:35 UTC 2021


> I never realized you could work a calculation into the $sort like that.

The Omnis core is an elegant piece of work.  Here's to the people who make the tools.

I've mostly used it with upp() for case-insensitive sorting  -  Do list.$sort(upp($ref.val),kFalse)

You'll hit a wall with the jst(x,'-8P0') if you have to use 2+ digits with leading letters, e.g. B1..B25.  Then you'll need a temporary sort column and code like Bas described.

Kelly


More information about the omnisdev-en mailing list