performance improvement
This commit is contained in:
@@ -674,7 +674,7 @@ local methods = {
|
|||||||
self.isSorted = nil
|
self.isSorted = nil
|
||||||
self:SetSelectedRecord(nil, true)
|
self:SetSelectedRecord(nil, true)
|
||||||
|
|
||||||
sort(self.records, function(a, b) return sorting.multi_lt(a.search_signature, b.search_signature, tostring(a), tostring(b)) end)
|
sort(self.records, function(a, b) return a.search_signature < b.search_signature or a.search_signature == b.search_signature and tostring(a) < tostring(b) end)
|
||||||
|
|
||||||
local records = self.records
|
local records = self.records
|
||||||
if getn(records) == 0 then return end
|
if getn(records) == 0 then return end
|
||||||
|
|||||||
Reference in New Issue
Block a user