Sorting, fixes #63.