Sort flexibility

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7320
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Sort flexibility

Post by dunbarx » Mon Nov 09, 2015 5:20 pm

One can place the "sortType" and "sortDirection" on either side of the container reference, including both sides:

Code: Select all

sort numeric descending myVar
sort numeric descending myVar ascending numeric
.

But those modifiers placed after the reference will override those placed before.

This does not apply to the "sortKey", which must follow the reference.

Craig Newman

Post Reply

Return to “Talking LiveCode”