1 #include "isajet/pilot.h"
2 SUBROUTINE ORDECR(IA,IB,N)
3 C----------------------------------------------------------------------
5 C- Purpose and Methods :
6 C- return an ordered array (by size of absolute values)
7 C- Warning: input array is destroyed
10 C- IA(N) = input array
12 C- IB(N) = output ordered array
14 C- Created 9-MAY-1988 Serban D. Protopopescu
16 C----------------------------------------------------------------------
17 #if defined(CERNLIB_IMPNONE)
20 INTEGER IA(*),IB(*),N,I,J,JSEL
21 C----------------------------------------------------------------------
26 IF(IABS(IA(J)).GT.IABS(IB(I))) THEN
31 IF(JSEL.GT.0) IA(JSEL)=0