Update to sort processing