List.Orderby(list : list, keys : any) : list
Sort items in list of maps using key names.
9.02 or later.
| Name | Type | Description |
| list | list | list value |
| keys | any | key name or list of key names; sort direction is controlled by appending " ascending" or " descending" to the key(s); when omitted, the direction is asending by default |
A new list of maps sorted by the specified keys
| Output | ||
| Ascending by Price: Foo => 5 Zoop => 6 Bar => 7 Descending by Name: Zoop => 6 Foo => 5 Bar => 7 |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by