update sort method docstring