Skip to content
Snippets Groups Projects
Commit 80c9efa4 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4352 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7104e963
No related branches found
Tags tome-beta33
No related merge requests found
......@@ -275,7 +275,7 @@ function _M:selectColumn(i, force, reverse)
if self.sortable and not force then
local fct = col.sort
if type(fct) == "string" then fct = function(a, b) return a[col.sort] < b[col.sort] end end
if self.sort_reverse then local old=fct fct = function(a, b) return old(b, a) end end
if self.sort_reverse and fct then local old=fct fct = function(a, b) return old(b, a) end end
table.sort(self.list, fct)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment