Added sort routines

* Sorting is based on sortperm
* Can specify sort order for each column (not completely general, but functional)

Still To Do:

* Tests
* Docs
* Generalizing sort order specification (e.g., by a Function of the column items)