Sort:  

That strategy made more sense under N^2