Joseph McCullough

Results 28 comments of Joseph McCullough

Interesting! Thanks for the issue.

Noted, I'll consider this. Thanks for the issue. I'm pretty busy right now, so it may take me a while for me to get around to this.

> This feature would be a great addition. I have a table that i reconstruct several times depending on selected filters, and it seem sorting stops working after first reconstruction....

I think transforming [this line](https://github.com/joequery/Stupid-Table-Plugin/blob/775bc08366d3d1ca0b8da6e72d46971f35ea9030/stupidtable.js#L138) into a settings function would allow this to be flexible enough to accommodate this request. ```js var trs = $table.children("tbody").children("tr"); ``` Something like: ``` $.fn.stupidtable.default_settings...

You can attach an event to the select boxes within the table to update their parent td's `sort-value` jquery data attribute to be the value you wish to have.

I'll try and cook up a demo if I can find time, but I'm a bit busy unfortunately.

@ljpaul You can hook into the `beforetablesort` event and manually set the `data-sort-value` of the cells which contain select boxes to be the value of the select box.

Thanks for noting your solution here @FredZCalgary !

Hi there! Can you please send over the HTML you used for your example? It's much easier to replicate from a gist or a JSfiddle than an image.