Modify sort to sort in ascending order