Working sort example in DIS!

- Lots of little bugfixes all over the place
- Added sort to the tests