Removes old sort function.