Added optimistic sort - NEEDS TESTING