kylefox/jquery-tablesort — pull request #2 by jasonrhodes (2012-10-03 19:08:36+00:00)
Title: Allow no thead

Made changes to how jQuery finds and populates the `	` elements and their click events, and how it finds and populates the `
` rows.

You can just search for `	` elements without looking inside of a `
` element, to make them clickable. Then, if the `this.$thead` stored variable's length is 0, the `rows` variable can fallback to all `
` elements that contain a `	` element (rather than a `	`).

This should keep the current functionality in tact while falling back for people whose table markup is slightly out of their control and thus can't use `
`.