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: 10509
Joined: Wed May 06, 2009 2:28 pm

Sort flexibility

Post by dunbarx »

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