Updating to sort by new values