Removed the list sorting function