This version is old school.
Please find jQuery plugins on npm.
Simple plugin for sorting lists
by Bryan Cua
$.listSort is a lightweight plugin that allows you to sort any list (with header) or table. It tries to determine if the element's value is a date (if Datejs is loaded), numeric, or a string.