Sort flexibility

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

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