Adding a sort and reverse sort feature