added passing tests for sort and delete