Sorting a list returns original sequence