two sorts working