{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/material2/issues/9966","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/9966/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/9966/comments","events_url":"https://api.github.com/repos/angular/material2/issues/9966/events","html_url":"https://github.com/angular/material2/issues/9966","id":297446772,"number":9966,"title":"Mat-table - sorting column containing both numbers and strings","user":{"login":"kaczmarekpawel","id":5605147,"avatar_url":"https://avatars0.githubusercontent.com/u/5605147?v=4","gravatar_id":"","url":"https://api.github.com/users/kaczmarekpawel","html_url":"https://github.com/kaczmarekpawel","followers_url":"https://api.github.com/users/kaczmarekpawel/followers","following_url":"https://api.github.com/users/kaczmarekpawel/following{/other_user}","gists_url":"https://api.github.com/users/kaczmarekpawel/gists{/gist_id}","starred_url":"https://api.github.com/users/kaczmarekpawel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaczmarekpawel/subscriptions","organizations_url":"https://api.github.com/users/kaczmarekpawel/orgs","repos_url":"https://api.github.com/users/kaczmarekpawel/repos","events_url":"https://api.github.com/users/kaczmarekpawel/events{/privacy}","received_events_url":"https://api.github.com/users/kaczmarekpawel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"andrewseguin","id":22898577,"avatar_url":"https://avatars3.githubusercontent.com/u/22898577?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewseguin","html_url":"https://github.com/andrewseguin","followers_url":"https://api.github.com/users/andrewseguin/followers","following_url":"https://api.github.com/users/andrewseguin/following{/other_user}","gists_url":"https://api.github.com/users/andrewseguin/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewseguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewseguin/subscriptions","organizations_url":"https://api.github.com/users/andrewseguin/orgs","repos_url":"https://api.github.com/users/andrewseguin/repos","events_url":"https://api.github.com/users/andrewseguin/events{/privacy}","received_events_url":"https://api.github.com/users/andrewseguin/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrewseguin","id":22898577,"avatar_url":"https://avatars3.githubusercontent.com/u/22898577?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewseguin","html_url":"https://github.com/andrewseguin","followers_url":"https://api.github.com/users/andrewseguin/followers","following_url":"https://api.github.com/users/andrewseguin/following{/other_user}","gists_url":"https://api.github.com/users/andrewseguin/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewseguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewseguin/subscriptions","organizations_url":"https://api.github.com/users/andrewseguin/orgs","repos_url":"https://api.github.com/users/andrewseguin/repos","events_url":"https://api.github.com/users/andrewseguin/events{/privacy}","received_events_url":"https://api.github.com/users/andrewseguin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-02-15T13:32:47Z","updated_at":"2018-03-06T22:26:53Z","closed_at":"2018-03-06T22:26:53Z","author_association":"NONE","body":"#### Bug, feature request, or proposal:\r\nBug\r\n\r\n#### What is the expected behavior?\r\nWhen mixed values are in a column (by mixed I mean numbers and strings), numbers should appear before literals in ASC order, and after literals in DESC order\r\n\r\n#### What is the current behavior?\r\nCurrent order after sorting depends on initial order in the array - but it's not sorted in the way described above\r\n\r\n#### What are the steps to reproduce?\r\nFill datatable with objects\r\n`[ \r\n  {name: 'aaa'},\r\n  {name: '111'},\r\n  {name: 'ccc'}\r\n]` <br/> configure datatable with sorter, column attached to `name` property and try sorting it. Notice that sorting is broken.\r\n\r\nSample bug reproduction can be found here:\r\nhttps://stackblitz.com/edit/angular-material2-issue-t3va8d\r\n\r\n\r\n#### What is the use-case or motivation for changing an existing behavior?\r\nPresenting user entered content in table - where single column may contain both text and numbers\r\n\r\n#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?\r\nTo my knowlege - all. Having a quick glance into angular-material source it looks like purely material issue.\r\n"}}
{"actor":{"display_login":"andrewseguin"}}