Need a fast and simple sorting function/subroutine

Could someone please recommend a fast and simple sorting function/subroutine that works on one-dimension real(8)/integer(8) arrays?

1 Like
1 Like

I actually just put together this package: https://gitlab.com/everythingfunctional/sortff

I haven’t done any performance tests or written documentation for it yet, but it provides sorted_order, sorted and sort for integer, real, and double precision arrays.

1 Like

Is the repo public? I’m getting a 404.

Oops, it is now.

1 Like

For future reference there is a list at

sorting

the list contains other general packages that include sorting as well. It would be nice if some of the additional references mentioned here are suggested as additions to this list and the Fortran Wiki. This is such a common query that perhaps the Fortran Wiki should have a new page dedicated to sorting.