Commit 80c9efa49104cb527395e4d8492f7e85c97af6b3
1 parent
7104e963
fix
git-svn-id: http://svn.net-core.org/repos/t-engine4@4352 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -275,7 +275,7 @@ function _M:selectColumn(i, force, reverse) |
275 | 275 | if self.sortable and not force then |
276 | 276 | local fct = col.sort |
277 | 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 | 279 | table.sort(self.list, fct) |
280 | 280 | end |
281 | 281 | end | ... | ... |
-
Please register or login to post a comment