rectify comment
sort elements to ease later processing (and have nicer output)