tests for sort functions
fixing merge conflicts