LeeWannacott / table-sort-js

HTML table sorting with no dependencies.
https://cdn.jsdelivr.net/npm/table-sort-js@latest/table-sort.js
MIT License
76 stars 26 forks source link

Don't apply table-sort-js if website already running a table sorter (browser extensions) #102

Open LeeWannacott opened 1 year ago

LeeWannacott commented 1 year ago

https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers

This table is already using sortable and jquery-tablesorter classes we should check for sorting classes from other libraries before running table sort js. If they exist don't run table-sort-js...

LeeWannacott commented 1 year ago

Or do we be evil and remove other libraries table class tags :supervillain:

scodes73 commented 1 year ago

Or do we be evil and remove other libraries table class tags supervillain

How about we give a toggle for user to pick it?

LeeWannacott commented 1 year ago

@scodes73 Yeah that sounds good; it's what I was thinking. Default don't run if other sorting libraries would be helpful for the browser plugins (which currently have no configurability by users) and then a class for overriding libraries if they exist: evil-supervillian-mode!