General refactor and enhanced sorting

Added stable sorting.
Added sort by function, and by object.
Added filter and sort by object with function example to demo.
Removed jQuery UI css dependancy