{"action":"created","issue":{"url":"https://api.github.com/repos/Mottie/tablesorter/issues/847","labels_url":"https://api.github.com/repos/Mottie/tablesorter/issues/847/labels{/name}","comments_url":"https://api.github.com/repos/Mottie/tablesorter/issues/847/comments","events_url":"https://api.github.com/repos/Mottie/tablesorter/issues/847/events","html_url":"https://github.com/Mottie/tablesorter/issues/847","id":62954881,"number":847,"title":"Problem with textextractor","user":{"login":"killerpapy","id":11554510,"avatar_url":"https://avatars.githubusercontent.com/u/11554510?v=3","gravatar_id":"","url":"https://api.github.com/users/killerpapy","html_url":"https://github.com/killerpapy","followers_url":"https://api.github.com/users/killerpapy/followers","following_url":"https://api.github.com/users/killerpapy/following{/other_user}","gists_url":"https://api.github.com/users/killerpapy/gists{/gist_id}","starred_url":"https://api.github.com/users/killerpapy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killerpapy/subscriptions","organizations_url":"https://api.github.com/users/killerpapy/orgs","repos_url":"https://api.github.com/users/killerpapy/repos","events_url":"https://api.github.com/users/killerpapy/events{/privacy}","received_events_url":"https://api.github.com/users/killerpapy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mottie/tablesorter/labels/Demo","name":"Demo","color":"DDDDDD"},{"url":"https://api.github.com/repos/Mottie/tablesorter/labels/How%20To...","name":"How To...","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-19T10:59:44Z","updated_at":"2015-03-19T13:28:59Z","closed_at":null,"body":"Hi everybody !\r\n\r\nI have some problem with textExtractor.\r\nThis is line sorted :\r\n```\r\n<tr id=\"sous-groupe-12639\" style=\"visibility:hidden\" role=\"row\">\r\n        <td data-sort-value=\"local 1z\" 4\"=\"\" style=\"display: none; colspan=\">local 1z</td>\r\n</tr>\r\n<tr id=\"12887\" class=\"shared_groups\" role=\"row\">\r\n\t<td class=\"moreSpace\" width=\"65%\" data-sort-value=\"mama\">\r\n\t\t<input class=\"groupeIds\" type=\"hidden\" value=\"12887\" name=\"teamIds\">\r\n\t\tmama\r\n\t</td>\r\n</tr>\r\n<tr id=\"12639\" class=\"shared_groups\" role=\"row\">\r\n\t<td class=\"moreSpace\" data-sort-value=\"local 1\">\r\n\t\t<a id=\"lien-groupe-12639\" class=\"lien-ferme\" href=\"#\" onclick=\"plierDeplier(12639,'team');\">\r\n\t\t\t<img style=\"float: left; padding-right: 10px; padding-top: 3px;\" src=\"../images/plus.png\" alt=\"plus\">\r\n\t\t</a>\r\n\t\t<input class=\"groupeIds\" type=\"hidden\" value=\"12639\" name=\"teamIds\">\r\n\t\tlocal 1\r\n\t</td>\r\n</tr>\r\n<tr id=\"12928\" class=\"shared_groups\" role=\"row\">\r\n\t<td class=\"moreSpace\" width=\"65%\" data-sort-value=\"trans aott new\">\r\n\t\t<input class=\"groupeIds\" type=\"hidden\" value=\"12928\" name=\"teamIds\">\r\n\t\ttrans aott new\r\n\t</td>\r\n</tr>\r\n```\r\nExtraction :\r\n```\r\njQuery(\"#groupe\").tablesorter( {\r\n\t\t\t\tsortList: [[0,0]],\r\n\t\t\t\ttextExtraction: {\r\n\t\t\t\t\t  1: function (node) {\r\n\t\t\t\t\t    return jQuery(node).attr('data-sort-value');\r\n\t\t\t\t\t  }\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t); \r\n```\r\nProblem with sorted value : \r\n```\r\nlocal 1z\r\nmama\r\nlocal 1\r\ntrans aott new\r\n```\r\n\r\nIn line with value \"local 1\" there is img with alt=\"plus\" and it break the sort.... \r\n\r\nAny idea ?\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/Mottie/tablesorter/issues/comments/83569357","html_url":"https://github.com/Mottie/tablesorter/issues/847#issuecomment-83569357","issue_url":"https://api.github.com/repos/Mottie/tablesorter/issues/847","id":83569357,"user":{"login":"killerpapy","id":11554510,"avatar_url":"https://avatars.githubusercontent.com/u/11554510?v=3","gravatar_id":"","url":"https://api.github.com/users/killerpapy","html_url":"https://github.com/killerpapy","followers_url":"https://api.github.com/users/killerpapy/followers","following_url":"https://api.github.com/users/killerpapy/following{/other_user}","gists_url":"https://api.github.com/users/killerpapy/gists{/gist_id}","starred_url":"https://api.github.com/users/killerpapy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/killerpapy/subscriptions","organizations_url":"https://api.github.com/users/killerpapy/orgs","repos_url":"https://api.github.com/users/killerpapy/repos","events_url":"https://api.github.com/users/killerpapy/events{/privacy}","received_events_url":"https://api.github.com/users/killerpapy/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T13:28:59Z","updated_at":"2015-03-19T13:28:59Z","body":"In my case when i set alt=\"a\" in the img. local z is in first line ...\r\nAnd i use the same code in http://jsfiddle.net there is no problem.\r\nI'm stuck..."}}