{"action":"created","issue":{"url":"https://api.github.com/repos/no81no/jplist/issues/107","labels_url":"https://api.github.com/repos/no81no/jplist/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/no81no/jplist/issues/107/comments","events_url":"https://api.github.com/repos/no81no/jplist/issues/107/events","html_url":"https://github.com/no81no/jplist/issues/107","id":90728459,"number":107,"title":"\"data-default\" on sort buttons not working","user":{"login":"micahlisonbee","id":1928295,"avatar_url":"https://avatars.githubusercontent.com/u/1928295?v=3","gravatar_id":"","url":"https://api.github.com/users/micahlisonbee","html_url":"https://github.com/micahlisonbee","followers_url":"https://api.github.com/users/micahlisonbee/followers","following_url":"https://api.github.com/users/micahlisonbee/following{/other_user}","gists_url":"https://api.github.com/users/micahlisonbee/gists{/gist_id}","starred_url":"https://api.github.com/users/micahlisonbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahlisonbee/subscriptions","organizations_url":"https://api.github.com/users/micahlisonbee/orgs","repos_url":"https://api.github.com/users/micahlisonbee/repos","events_url":"https://api.github.com/users/micahlisonbee/events{/privacy}","received_events_url":"https://api.github.com/users/micahlisonbee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-24T16:38:28Z","updated_at":"2015-07-01T19:37:07Z","closed_at":null,"body":"On the sort buttons plugin the `data-default=\"true\"` option is not working. Instead, the first div in the list is the default. For example, in my code below, the `.track-title-link asc` is default, instead of the the `.is-staff-pick`.\r\n\r\n\r\n```html\r\n<div class=\"jplist-panel no-border\">\r\n\t<div data-control-type=\"sort-buttons-group\" data-control-name=\"track-row-filters\" data-control-action=\"sort\" data-mode=\"single\">\r\n\t\t<div class=\"col-md-2 first-title\">\r\n\t\t\t<div class=\"tracks-sort-button desc\" data-path=\".track-title-link\" data-type=\"text\" data-order=\"asc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Title\">Title</div>\r\n\t\t\t<div class=\"tracks-sort-button asc selected showing\" data-path=\".track-title-link\" data-type=\"text\" data-order=\"desc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Title\">Title</div>\r\n\t\t</div>\r\n\t\t<div class=\"col-md-2\">\r\n\t\t\t<div class=\"tracks-sort-button asc staff-pick\" data-path=\".is-staff-pick\" data-type=\"text\" data-order=\"desc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Staff Picks\">Staff Pick</div>\r\n\t\t\t<div class=\"tracks-sort-button desc staff-pick showing\" data-default=\"true\" data-path=\".is-staff-pick\" data-type=\"text\" data-order=\"asc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Staff Picks\">Staff Pick</div>\r\n\t\t</div>\r\n\t\t<div class=\"col-md-3\">\r\n\t\t\t<div class=\"tracks-sort-button desc showing\" data-path=\".genre\" data-type=\"text\" data-order=\"asc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Genre\">Genre</div>\r\n\t\t\t<div class=\"tracks-sort-button asc\" data-path=\".genre\" data-type=\"text\" data-order=\"desc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Genre\">Genre</div>\r\n\t\t</div>\r\n\t\t<div class=\"col-md-2\">\r\n\t\t\t<div class=\"tracks-sort-button desc showing\" data-path=\".mood\" data-type=\"text\" data-order=\"asc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Mood\">Mood</div>\r\n\t\t\t<div class=\"tracks-sort-button asc\" data-path=\".mood\" data-type=\"text\" data-order=\"desc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Mood\">Mood</div>\r\n\t\t</div>\r\n\t\t<div class=\"col-md-2\">Canvas</div>\r\n\t\t<div class=\"col-md-1 last-title\">\r\n\t\t\t<div class=\"tracks-sort-button desc showing\" data-path=\".duration-sort\" data-type=\"number\" data-order=\"asc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Length\">Length</div>\r\n\t\t\t<div class=\"tracks-sort-button asc\" data-path=\".duration-sort\" data-type=\"number\" data-order=\"desc\" data-toggle=\"tooltip\" data-original-title=\"Sort by Length\">Length</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/no81no/jplist/issues/comments/117802667","html_url":"https://github.com/no81no/jplist/issues/107#issuecomment-117802667","issue_url":"https://api.github.com/repos/no81no/jplist/issues/107","id":117802667,"user":{"login":"micahlisonbee","id":1928295,"avatar_url":"https://avatars.githubusercontent.com/u/1928295?v=3","gravatar_id":"","url":"https://api.github.com/users/micahlisonbee","html_url":"https://github.com/micahlisonbee","followers_url":"https://api.github.com/users/micahlisonbee/followers","following_url":"https://api.github.com/users/micahlisonbee/following{/other_user}","gists_url":"https://api.github.com/users/micahlisonbee/gists{/gist_id}","starred_url":"https://api.github.com/users/micahlisonbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahlisonbee/subscriptions","organizations_url":"https://api.github.com/users/micahlisonbee/orgs","repos_url":"https://api.github.com/users/micahlisonbee/repos","events_url":"https://api.github.com/users/micahlisonbee/events{/privacy}","received_events_url":"https://api.github.com/users/micahlisonbee/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T19:37:07Z","updated_at":"2015-07-01T19:37:07Z","body":"You mean \"not `data-default=\"true\"`\" right?"}}