Added documentation to sortWith