Anonymous

Module:FunList: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 243: Line 243:
function funlist:sortBy(selector)
function funlist:sortBy(selector)
assert(selector)
assert(selector)
table.insert(self.sortData, {
table.insert(self.sortSelectors, {
selector = selector,
selector = selector,
ascending = true
ascending = true
Line 252: Line 252:
function funlist:sortByDecending(selector)
function funlist:sortByDecending(selector)
assert(selector)
assert(selector)
table.insert(self.sortData, {
table.insert(self.sortSelectors, {
selector = selector,
selector = selector,
ascending = false
ascending = false
2,875

edits