diff --git a/source/Ox.UI/js/List/TableList.js b/source/Ox.UI/js/List/TableList.js index 75f8525d..7264949b 100644 --- a/source/Ox.UI/js/List/TableList.js +++ b/source/Ox.UI/js/List/TableList.js @@ -380,11 +380,11 @@ Ox.TableList = function(options, self) { // so we use a timeout for now setTimeout(function() { that.$body.options({sort: self.options.sort}); + that.gainFocus().triggerEvent('sort', { + key: self.options.sort[0].key, + operator: self.options.sort[0].operator + }); }, 10); - that.gainFocus().triggerEvent('sort', { - key: self.options.sort[0].key, - operator: self.options.sort[0].operator - }); } function constructHead() {