From 45920f81aa79d974163dfe562124da4f2ca15772 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Mon, 22 Feb 2016 15:54:59 +0100 Subject: [PATCH] sorting fix --- auction_listing.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auction_listing.lua b/auction_listing.lua index 9a067bd..031679e 100644 --- a/auction_listing.lua +++ b/auction_listing.lua @@ -356,8 +356,8 @@ local methods = { -- sort by percent return SortHelperFunc(a, b, 'percent') end - -- as a last resort compare table ids to ensure a total order - return tostring(record_a) < tostring(record_b) + -- as a last resort compare search signatures to ensure a total order + return record_a.search_signature < record_b.search_signature end if self.sortInfo.descending then return aVal > bVal