Revised doc for sorting