Makes sort ns comparator configurable

- adds length comparator
- adds section to the readme describing configurable sort ns