Added doc for sort functionality