Sort an integer array: Difference between revisions

Content added Content deleted
(added fortran)
Line 160: Line 160:
create test-data 2 , 4 , 3 , 1 , 2 ,
create test-data 2 , 4 , 3 , 1 , 2 ,
test-data 5 cell-sort
test-data 5 cell-sort

=={{header|Fortran}}==
{{works with|Silverfrost FTN95}}
CALL ISORT@(b, a, n)
! n = number of elements
! a = array to be sorted
! b = array of indices of a. b(1) 'points' to the minimum value etc.


=={{header|Haskell}}==
=={{header|Haskell}}==