Knockout: made sort generic
Merge pull request #1256 from johnnyreilly/master

Knockout: made sort generic