Sort an integer array: Difference between revisions

Line 992:
 
=={{header|Eiffel}}==
 
Working example: [https://github.com/ljr1981/rosettacode_answers/blob/main/testing/rc_array_sort/rc_array_sort_test_set.e Full example code]
 
Using a SORTED_TWO_WAY_LIST means that the contents of the list will be sorted ascending automatically.
The list can be easily sorted in reverse. There is a call for `sort' to manually initiate sorting.
Line 1,002 ⟶ 1,005:
end
</lang>
 
Working example: https://github.com/ljr1981/rosettacode_answers/blob/main/testing/rc_array_sort/rc_array_sort_test_set.e
 
=={{header|Elena}}==
Anonymous user