Commit 80c9efa49104cb527395e4d8492f7e85c97af6b3

Authored by dg
1 parent 7104e963

fix


git-svn-id: http://svn.net-core.org/repos/t-engine4@4352 51575b47-30f0-44d4-a5cc-537603b46e54
@@ -275,7 +275,7 @@ function _M:selectColumn(i, force, reverse) @@ -275,7 +275,7 @@ function _M:selectColumn(i, force, reverse)
275 if self.sortable and not force then 275 if self.sortable and not force then
276 local fct = col.sort 276 local fct = col.sort
277 if type(fct) == "string" then fct = function(a, b) return a[col.sort] < b[col.sort] end end 277 if type(fct) == "string" then fct = function(a, b) return a[col.sort] < b[col.sort] end end
278 - if self.sort_reverse then local old=fct fct = function(a, b) return old(b, a) end end 278 + if self.sort_reverse and fct then local old=fct fct = function(a, b) return old(b, a) end end
279 table.sort(self.list, fct) 279 table.sort(self.list, fct)
280 end 280 end
281 end 281 end