Added the ability to resort