{"action":"closed","issue":{"url":"https://api.github.com/repos/joequery/Stupid-Table-Plugin/issues/160","repository_url":"https://api.github.com/repos/joequery/Stupid-Table-Plugin","labels_url":"https://api.github.com/repos/joequery/Stupid-Table-Plugin/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/joequery/Stupid-Table-Plugin/issues/160/comments","events_url":"https://api.github.com/repos/joequery/Stupid-Table-Plugin/issues/160/events","html_url":"https://github.com/joequery/Stupid-Table-Plugin/issues/160","id":136437398,"number":160,"title":"Allow custom sorting","user":{"login":"victoriachan","id":60257,"avatar_url":"https://avatars.githubusercontent.com/u/60257?v=3","gravatar_id":"","url":"https://api.github.com/users/victoriachan","html_url":"https://github.com/victoriachan","followers_url":"https://api.github.com/users/victoriachan/followers","following_url":"https://api.github.com/users/victoriachan/following{/other_user}","gists_url":"https://api.github.com/users/victoriachan/gists{/gist_id}","starred_url":"https://api.github.com/users/victoriachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victoriachan/subscriptions","organizations_url":"https://api.github.com/users/victoriachan/orgs","repos_url":"https://api.github.com/users/victoriachan/repos","events_url":"https://api.github.com/users/victoriachan/events{/privacy}","received_events_url":"https://api.github.com/users/victoriachan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T16:27:55Z","updated_at":"2016-02-25T17:08:16Z","closed_at":"2016-02-25T17:08:15Z","body":"This came up with a client who is trying to use the table sorter for a column with currency, eg. £10.10. As this is being used in a Drupal site, and the WYSIWYG's table editor does not support custom attributes for table cells, it would be too much pain for them to edit each cell to add `data-sort-value=\"10.10\"` etc.\r\n\r\nA possible solution would be for the library to support custom sort functions so users could specify a new data type, eg, currency, and we can augment the library with a function for that, which can simply use regex etc for the data sort values.\r\n\r\nI've seen this in another library: http://tablesorter.com/docs/example-parsers.html\r\n\r\nThank you!"}}