Version two of the previous sort project