Added docstring to Sorter