smart-table-sort

takes a sort configuration object and returns a sort function operating on arrays