Sorting question

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Sorting question

Post by BIX » Thu Nov 29, 2007 8:00 pm

I have a field with numbers 1 to 10 in each line. How can i sort them, but from higher to lower.
BIX

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Thu Nov 29, 2007 8:44 pm

Hi BIX,

...
sort fld "field with the numbers" DESCENDING numeric
...

That's it :-)


Best

Klaus

P.S.
You may be surprised but this can be found in the docs under "sort" ;-)

BIX
Posts: 33
Joined: Fri Oct 27, 2006 2:54 pm

Post by BIX » Thu Nov 29, 2007 8:52 pm

Thanks Klaus.

I was really looking for it in docs. I guess I didn't look carefully enough...
BIX

Klaus
Posts: 14193
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Fri Nov 30, 2007 9:18 am

Hi Bix,

there are 2 entries for "sort":
1. sort (for cards)...
2. sort <container>...

The anser was in nr. 2 :-)


Best from germany

Klaus

Post Reply