{"action":"created","issue":{"url":"https://api.github.com/repos/Mottie/tablesorter/issues/746","labels_url":"https://api.github.com/repos/Mottie/tablesorter/issues/746/labels{/name}","comments_url":"https://api.github.com/repos/Mottie/tablesorter/issues/746/comments","events_url":"https://api.github.com/repos/Mottie/tablesorter/issues/746/events","html_url":"https://github.com/Mottie/tablesorter/issues/746","id":45651617,"number":746,"title":"Weird sort behavior when table rows contains rows with colspan","user":{"login":"FlorianPichon","id":1596041,"avatar_url":"https://avatars.githubusercontent.com/u/1596041?v=3","gravatar_id":"","url":"https://api.github.com/users/FlorianPichon","html_url":"https://github.com/FlorianPichon","followers_url":"https://api.github.com/users/FlorianPichon/followers","following_url":"https://api.github.com/users/FlorianPichon/following{/other_user}","gists_url":"https://api.github.com/users/FlorianPichon/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorianPichon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorianPichon/subscriptions","organizations_url":"https://api.github.com/users/FlorianPichon/orgs","repos_url":"https://api.github.com/users/FlorianPichon/repos","events_url":"https://api.github.com/users/FlorianPichon/events{/privacy}","received_events_url":"https://api.github.com/users/FlorianPichon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-10-13T15:00:34Z","updated_at":"2015-10-17T20:29:16Z","closed_at":null,"body":"I have a table where I load this configuration : \r\n\r\n```js\r\n{\r\n    headers:{\r\n        0:{sorter:false},\r\n        1:{sorter:'text'},\r\n        2:{sorter:'text'},\r\n        3:{sorter:'text'},\r\n        4:{sorter:false},\r\n        5:{sorter:false},\r\n        6:{sorter:'digit'},\r\n        7:{sorter:'procent'},\r\n        8:{sorter:false},\r\n        9:{sorter:false}\r\n    },\r\n    sortList:[[10,1],[7,0]],     \r\n    widgets: [\"stickyHeaders\",\"zebra\"],\r\n    widgetOptions : {\r\n        stickyHeaders : \"tablesorter-stickyHeader\"\r\n    }\r\n};\r\n```\r\n\r\nI update the table data via Ajax where I append the data, and then I do : \r\n\r\n```js\r\njq_table.get()[0].tBodies[0].innerHTML = buffer;\r\njq_table.trigger(\"update\"); \r\n```\r\n\r\nthe table structure looks like this : \r\n\r\n```html\r\n<table>\r\n\t<thead>\r\n\t\t<tr>\r\n\t\t\t<th rowspan=\"2\">...</th>\r\n\t\t\t<th rowspan=\"2\">...</th>\r\n\t\t\t<th rowspan=\"2\">...</th>\r\n\t\t\t<th rowspan=\"2\">...</th>\r\n\t\t\t<th colspan=\"3\" rowspan=\"2\">...</th>\r\n\t\t\t<th colspan=\"3\">...</th>\r\n\t\t\t<th>...</th>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<th>...</th>\r\n\t\t\t<th>...</th>\r\n\t\t\t<th>...</th>\r\n\t\t</tr>\r\n\t</thead>\r\n\t<tbody>\r\n\t\t<tr class=\"odd\">\r\n\t\t\t<td>...</td>\r\n\t\t\t<td>...</td>\r\n\t\t\t<td>...</td>\r\n\t\t\t<td>...</td>\r\n\t\t\t<td>...</td>\r\n\t\t\t<td colspan=\"2\">...</td>\r\n\t\t\t<td>...</td>\r\n\t\t\t<td>...</td>\r\n\t\t\t<td>...</td>\r\n\t\t\t<td>...</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n\t<tfoot>\r\n\t</tfoot>\r\n</table>\r\n```"},"comment":{"url":"https://api.github.com/repos/Mottie/tablesorter/issues/comments/148949307","html_url":"https://github.com/Mottie/tablesorter/issues/746#issuecomment-148949307","issue_url":"https://api.github.com/repos/Mottie/tablesorter/issues/746","id":148949307,"user":{"login":"Mottie","id":136959,"avatar_url":"https://avatars.githubusercontent.com/u/136959?v=3","gravatar_id":"","url":"https://api.github.com/users/Mottie","html_url":"https://github.com/Mottie","followers_url":"https://api.github.com/users/Mottie/followers","following_url":"https://api.github.com/users/Mottie/following{/other_user}","gists_url":"https://api.github.com/users/Mottie/gists{/gist_id}","starred_url":"https://api.github.com/users/Mottie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mottie/subscriptions","organizations_url":"https://api.github.com/users/Mottie/orgs","repos_url":"https://api.github.com/users/Mottie/repos","events_url":"https://api.github.com/users/Mottie/events{/privacy}","received_events_url":"https://api.github.com/users/Mottie/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T20:29:16Z","updated_at":"2015-10-17T20:29:16Z","body":"Well, I added very basic support for a table when an **entire column** is set with `colspan`... I have not thoroughly tested it with all widgets, but so far it is working well with the filter widget ([demo](http://jsfiddle.net/Mottie/856bzzeL/681/)).\r\n\r\nIt *should* work with `colspan`s in the `tbody`, but again, this has not been thoroughly tested. I added it to the master branch to hopefully get some help with that :)\r\n\r\nAny `rowspan` in the `tbody` will not work as expected... yet."}}