{"action":"created","issue":{"url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/41","repository_url":"https://api.github.com/repos/bencripps/react-redux-grid","labels_url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/41/comments","events_url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/41/events","html_url":"https://github.com/bencripps/react-redux-grid/issues/41","id":170227282,"number":41,"title":"Custom sorting","user":{"login":"innopal","id":3811229,"avatar_url":"https://avatars.githubusercontent.com/u/3811229?v=3","gravatar_id":"","url":"https://api.github.com/users/innopal","html_url":"https://github.com/innopal","followers_url":"https://api.github.com/users/innopal/followers","following_url":"https://api.github.com/users/innopal/following{/other_user}","gists_url":"https://api.github.com/users/innopal/gists{/gist_id}","starred_url":"https://api.github.com/users/innopal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/innopal/subscriptions","organizations_url":"https://api.github.com/users/innopal/orgs","repos_url":"https://api.github.com/users/innopal/repos","events_url":"https://api.github.com/users/innopal/events{/privacy}","received_events_url":"https://api.github.com/users/innopal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bencripps/react-redux-grid/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-08-09T17:42:11Z","updated_at":"2016-08-25T21:15:05Z","closed_at":"2016-08-11T22:09:39Z","body":"I can't figure out a way to add a custom sorting function to a column. Is it possible?"},"comment":{"url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/comments/242542817","html_url":"https://github.com/bencripps/react-redux-grid/issues/41#issuecomment-242542817","issue_url":"https://api.github.com/repos/bencripps/react-redux-grid/issues/41","id":242542817,"user":{"login":"bencripps","id":6272507,"avatar_url":"https://avatars.githubusercontent.com/u/6272507?v=3","gravatar_id":"","url":"https://api.github.com/users/bencripps","html_url":"https://github.com/bencripps","followers_url":"https://api.github.com/users/bencripps/followers","following_url":"https://api.github.com/users/bencripps/following{/other_user}","gists_url":"https://api.github.com/users/bencripps/gists{/gist_id}","starred_url":"https://api.github.com/users/bencripps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bencripps/subscriptions","organizations_url":"https://api.github.com/users/bencripps/orgs","repos_url":"https://api.github.com/users/bencripps/repos","events_url":"https://api.github.com/users/bencripps/events{/privacy}","received_events_url":"https://api.github.com/users/bencripps/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T21:15:05Z","updated_at":"2016-08-25T21:15:05Z","body":"Should work now -- direction will be the first argument, and will either be `DESC` OR `ASC`. Here's an example of how this could work.\r\n\r\n````js\r\nconst sortFn = (direction, prev, curr) => {\r\n    if (direction === 'DESC') {\r\n        return prev - curr;\r\n    }\r\n    return curr - prev;\r\n};\r\n````"}}
{"actor":{"display_login":"bencripps"}}