Title: A generally-applicable Fortran programme to sort and print an index