Repository navigation
SortDescending
Dennis Corvers edited this page Oct 23, 2026
·
2 revisions
Sorts values in descending order using Lua's > comparison.
ordered = source:sortDescending()This method has no parameters.
A deferred Enumerable that buffers and sorts the source values when
enumerated.
Values must be comparable with Lua's > operator. orderDecending (with this
spelling) is an alias.
local orderedDrops = LuaQ.from({ "Coins", "Abyssal whip", "Rune platebody" })
:sortDescending()
:toTable()
-- Sorts item names in descending lexicographic order- Home
- Getting Started
-
Functions
- aggregate
- all
- any
- concat
- contains
- count
- create
- createFrom
- deepCopy
- difference
- elementAt
- elementAtOrDefault
- first
- firstOrDefault
- flatMap
- foreach
- groupBy
- groupByResult
- indexOf
- intersect
- ipairs
- last
- lastOrDefault
- map
- max
- min
- pairs
- sequenceEquals
- single
- singleOrDefault
- sort
- sortBy
- sortByDescending
- sortDescending
- sum
- take
- takeWhile
- thenBy
- thenByDecending
- toLookup
- toMap
- toSet
- toTable
- union
- unique
- where
- zip
- Aliases