Codes of Sorting