Sort:  

This is correct. Two different forms of roughly the same problem.