Import std.collections.array
Sorting
struct
Public Struct Sorting<T>
An array SortBy or SortByDescending sorted, whose ThenBy and ThenByDescending sort it again where the keys so far tie, in place.
Examples
Local words = ["bb", "a", "ccc", "dd"]
words.SortBy(Function(w: String) => w.Length).ThenByDescending(Function(w: String) => w)
Expect(words == ["a", "dd", "bb", "ccc"])std/collections/array.fb, line 514
-
Sorts the array again by what
keygives, smallest first, where the keys so far tie. -
The same, largest
keyfirst.
Report an issue with this page or with FutureBlitz on GitHub.