5 * Revision 1.1 2000/07/25 14:53:05 mclareni
6 * Version 7.51 from author
9 *#include "sys/CERNLIB_machine.h"
10 #include "isajet/pilot.h"
11 #if defined(CERNLIB_NOCERN)
12 SUBROUTINE SORTTF(A,INDEX,N1)
13 C=======================================================================
14 C Given real array and corresponding index INDEX, find new
15 C INDEX for which A is sorted into ascending order.
17 C From CERN PROGLIB# M101
18 C=======================================================================
19 DIMENSION A(N1),INDEX(N1)
29 IF (AI.LE.A (I22)) GO TO 3
41 IF (I2.LE.N) I22= INDEX(I2)
44 IF (A(I22)-A(I222)) 8,9,9
47 9 IF (AI-A(I22)) 10,11,11