diff --git a/source/Ox.UI/js/List/Ox.TextList.js b/source/Ox.UI/js/List/Ox.TextList.js index 22da6f62..8d457212 100644 --- a/source/Ox.UI/js/List/Ox.TextList.js +++ b/source/Ox.UI/js/List/Ox.TextList.js @@ -108,6 +108,13 @@ Ox.TextList = function(options, self) { } }); + if (Ox.isEmpty(self.options.sort)) { + self.options.sort = [{ + key: self.unique, + operator: Ox.getObjectById(self.options.columns, self.unique).operator + }]; + } + Ox.extend(self, { columnPositions: [], defaultColumnWidths: self.options.columns.map(function(column) {