sort table by javascript event
sort table by javascript event

I want to be able to click a button that calls a javascript function which sorts the table automatically. For example, instead of typing "Males" in the search box, I want top be able to click a button which automatically searches the table entries with "Males" present and sorts the table accordingly.
This discussion has been closed.