Removed broken sort function