{"action":"created","issue":{"url":"https://api.github.com/repos/handsontable/handsontable/issues/989","repository_url":"https://api.github.com/repos/handsontable/handsontable","labels_url":"https://api.github.com/repos/handsontable/handsontable/issues/989/labels{/name}","comments_url":"https://api.github.com/repos/handsontable/handsontable/issues/989/comments","events_url":"https://api.github.com/repos/handsontable/handsontable/issues/989/events","html_url":"https://github.com/handsontable/handsontable/issues/989","id":18368397,"node_id":"MDU6SXNzdWUxODM2ODM5Nw==","number":989,"title":"Get ordered data","user":{"login":"fcofabricio","id":1823858,"node_id":"MDQ6VXNlcjE4MjM4NTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1823858?v=4","gravatar_id":"","url":"https://api.github.com/users/fcofabricio","html_url":"https://github.com/fcofabricio","followers_url":"https://api.github.com/users/fcofabricio/followers","following_url":"https://api.github.com/users/fcofabricio/following{/other_user}","gists_url":"https://api.github.com/users/fcofabricio/gists{/gist_id}","starred_url":"https://api.github.com/users/fcofabricio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcofabricio/subscriptions","organizations_url":"https://api.github.com/users/fcofabricio/orgs","repos_url":"https://api.github.com/users/fcofabricio/repos","events_url":"https://api.github.com/users/fcofabricio/events{/privacy}","received_events_url":"https://api.github.com/users/fcofabricio/received_events","type":"User","site_admin":false},"labels":[{"id":184861510,"node_id":"MDU6TGFiZWwxODQ4NjE1MTA=","url":"https://api.github.com/repos/handsontable/handsontable/labels/Status:%20Answered","name":"Status: Answered","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2013-08-21T17:26:45Z","updated_at":"2018-06-07T17:49:53Z","closed_at":"2013-08-22T08:21:12Z","author_association":"NONE","body":"How I get the ordered data after sorting operation?\n"},"comment":{"url":"https://api.github.com/repos/handsontable/handsontable/issues/comments/395508001","html_url":"https://github.com/handsontable/handsontable/issues/989#issuecomment-395508001","issue_url":"https://api.github.com/repos/handsontable/handsontable/issues/989","id":395508001,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTUwODAwMQ==","user":{"login":"MikeMajara","id":15649320,"node_id":"MDQ6VXNlcjE1NjQ5MzIw","avatar_url":"https://avatars3.githubusercontent.com/u/15649320?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeMajara","html_url":"https://github.com/MikeMajara","followers_url":"https://api.github.com/users/MikeMajara/followers","following_url":"https://api.github.com/users/MikeMajara/following{/other_user}","gists_url":"https://api.github.com/users/MikeMajara/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeMajara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeMajara/subscriptions","organizations_url":"https://api.github.com/users/MikeMajara/orgs","repos_url":"https://api.github.com/users/MikeMajara/repos","events_url":"https://api.github.com/users/MikeMajara/events{/privacy}","received_events_url":"https://api.github.com/users/MikeMajara/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T17:49:53Z","updated_at":"2018-06-07T17:49:53Z","author_association":"NONE","body":"Nope... The problem for me happens to be after using `hot.getPlugin('columnSorting').sort(0, 'asc');`. I apply this sorting each time a cell is edited in order to keep the rows sorted. After, I want to apply a different order algorithm for which I need the data sorted, but it seems to be unsorted internally although it is shown otherwise on the table.\r\n\r\nThe workaround I found (although it might not be suitable for all) is sorting the source data and rendering. It is not Ideal because I have to keep elsewhere the original order. But it seems to do the job. \r\n\r\nIn fact, hot.getData() with or without parameters actually does return data ordered as shown once the plugin sorting is removed.\r\n\r\nTL;DR;\r\n\r\ncolumnSorting plugin is messing up with the order related to what is visible on the table. Use `Array.prototype.sort()` as specified [here](https://docs.handsontable.com/3.0.0/demo-sorting.html)."}}
{"actor":{"display_login":"MikeMajara"}}