Updating Sorting Class