enable simple sorting.

This closes #5