added more tests to sort command