Removed unnecessary sort