{"action":"created","issue":{"url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/290","repository_url":"https://api.github.com/repos/daniel-nagy/md-data-table","labels_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/290/comments","events_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/290/events","html_url":"https://github.com/daniel-nagy/md-data-table/issues/290","id":132927890,"number":290,"title":"How to get \"right\" sorting behaviour","user":{"login":"juriw","id":7030932,"avatar_url":"https://avatars.githubusercontent.com/u/7030932?v=3","gravatar_id":"","url":"https://api.github.com/users/juriw","html_url":"https://github.com/juriw","followers_url":"https://api.github.com/users/juriw/followers","following_url":"https://api.github.com/users/juriw/following{/other_user}","gists_url":"https://api.github.com/users/juriw/gists{/gist_id}","starred_url":"https://api.github.com/users/juriw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juriw/subscriptions","organizations_url":"https://api.github.com/users/juriw/orgs","repos_url":"https://api.github.com/users/juriw/repos","events_url":"https://api.github.com/users/juriw/events{/privacy}","received_events_url":"https://api.github.com/users/juriw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-11T09:43:01Z","updated_at":"2016-02-11T18:00:43Z","closed_at":"2016-02-11T18:00:43Z","body":"Hi\r\n\r\nI have some problems with my sorting. It like it sort in \"catalog style\" so every item that starts with 1 is before 2. Eg. 1,10,13,113,132421 are all before 2.\r\n\r\nI would like that is just sorted from lower to higher.\r\n\r\nHere is my table\r\n`  <md-table-container>\r\n            <table md-table md-row-select=\"options.rowSelection\" ng-model=\"selected\" md-progress=\"promise\">\r\n                <thead md-head md-order=\"query.order\" md-on-reorder=\"logOrder\">\r\n                <tr md-row>\r\n                    <th md-column md-order-by=\"name\">Gastype</th>\r\n                    <th md-column md-numeric md-order-by=\"code\" md-desc>Kode</th>\r\n                </tr>\r\n                </thead>\r\n                <tbody md-body>\r\n                <tr md-row md-select=\"gastype\" md-on-select=\"logItem\" md-auto-select=\"options.autoSelect\"\r\n                    ng-disabled=\"selected[0].id != undefined && gastype.id != selected[0].id\"\r\n                    ng-repeat=\"gastype in gastypes | filter: query.filter | orderBy: query.order | limitTo: query.limit : (query.page -1) * query.limit\">\r\n                    <td md-cell>{{gastype.name}}</td>\r\n                    <td md-cell>{{gastype.code}}</td>\r\n                </tr>\r\n                </tbody>\r\n            </table>\r\n        </md-table-container>`\r\n\r\nHere is my order setting from the ctrl.\r\n`  $scope.query = {\r\n        order: 'code',\r\n        limit: 10,\r\n        page: 1\r\n    };`\r\n\r\nResult in the UI is like this\r\n![localhost_admin_index_html__gastypes](https://cloud.githubusercontent.com/assets/7030932/12973295/8eb02862-d0ab-11e5-8d9e-b52ea5ed1d4c.png)"},"comment":{"url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/comments/182980366","html_url":"https://github.com/daniel-nagy/md-data-table/issues/290#issuecomment-182980366","issue_url":"https://api.github.com/repos/daniel-nagy/md-data-table/issues/290","id":182980366,"user":{"login":"juriw","id":7030932,"avatar_url":"https://avatars.githubusercontent.com/u/7030932?v=3","gravatar_id":"","url":"https://api.github.com/users/juriw","html_url":"https://github.com/juriw","followers_url":"https://api.github.com/users/juriw/followers","following_url":"https://api.github.com/users/juriw/following{/other_user}","gists_url":"https://api.github.com/users/juriw/gists{/gist_id}","starred_url":"https://api.github.com/users/juriw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juriw/subscriptions","organizations_url":"https://api.github.com/users/juriw/orgs","repos_url":"https://api.github.com/users/juriw/repos","events_url":"https://api.github.com/users/juriw/events{/privacy}","received_events_url":"https://api.github.com/users/juriw/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T18:00:43Z","updated_at":"2016-02-11T18:00:43Z","body":"@daniel-nagy you where 100% right! ;) \r\nI had same problem as this post: http://stackoverflow.com/a/19175678/944670 "}}