SUBROUTINE TOKEN.SORT(LENGTH, MAT ALPHASTRINGS, MAT ALPHACODES) ****************************************************************************** * * Sort array to be passed to subroutine GET.TOKEN.B * * Module %M% Version %I% Date %H% * * (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved * This is unpublished proprietary source code of Ardent Software Inc. * The copyright notice above does not evidence any actual or intended * publication of such source code. * ******************************************************************************* * * Maintenence log - insert most recent change descriptions at top * * Date.... GTAR# WHO Description........................................ * 10/14/98 23801 SAP Change copyrights. * 08/20/90 7365 DPB Fixed problem of not finding length of long element * 08/13/90 7365 DPB Subroutine for sorting key arrays for GET.TOKEN.B * ******************************************************************************* id = "%W%" FOR I = 1 TO LENGTH-1 FOR J = I+1 TO LENGTH IF LEN(ALPHASTRINGS(I)) < LEN(ALPHASTRINGS(J)) THEN TEMP = ALPHASTRINGS(I) ALPHASTRINGS(I) = ALPHASTRINGS(J) ALPHASTRINGS(J) = TEMP TEMP = ALPHACODES(I) ALPHACODES(I) = ALPHACODES(J) ALPHACODES(J) = TEMP END NEXT J NEXT I ALPHASTRINGS(0) = LEN(ALPHASTRINGS(1))