Sort:  

This time optimization way better than 1st one...