Rename sort function to avoid duplicate function name.