FastSort Manual

Sorting Interactively
FastSort Manual429834-003
2-8
Running a Key Sort
03 Busy Lizzy IMPATIENS flower 30
12 Daffodil NARCISSUS flower 60
Running a Key Sort
The output records from a key sort consist of the values of the concatenated key fields
in sorted order. The following commands tell FastSort to reorder the records in
PLANTS1 and PLANTS2 using the same key fields and to write only the key values to
SORTOUT:
18> SORT
FastSort - T9620D30 - (31OCT94)
COPYRIGHT TANDEM COMPUTERS INCORPORATED 1991 - 1994
<FROM PLANTS1
<FROM PLANTS2
<TO SORTOUT, KEYS
<DESC 47:52
<ASC 21:31, 33:43
<RUN, REMOVEDUPS
26 RECORDS 132 MAX RECORD SIZE
00:04 ELAPSED TIME 63 BUFFER PAGES
00:00 I/O WAIT TIME 0 INITIAL RUNS
131 COMPARES 0 MERGE ORDER
0 SCRATCH DISK
0 SCRATCH SEEKS
2 DUPLICATES
The following example shows the contents of the SORTOUT file after the sort run.
SORTOUT contains only the key-field values for each input record, except for the
records that have duplicate values.
tree AESCULUS GLABRA
tree FICUS BENJAMINA
tree FICUS ELASTICA
tree FICUS LYRATA
tree JUNIPERUS VIRGINIANA
tree QUERCUS AGRIFOLIA
tree QUERCUS MUEHLENBERG
tree ULMUS RUBRA
shrub ACACIA GREGGII
shrub MORUS RUBRA
shrub PROSOPIC JULIFLORA
shrub PRUNUS AMERICANA
shrub PTELEA TRIFOLIATA
indoorCHAMAEDOREAELEGANS
indoorCISSUS RHOMBIFOLIA
indoorNEPHROLEPISEXALTATA
indoorPILEA CADIEREI
indoorPILEA MICROPHYLLA
indoorTOLMIEA MENZIESII
fruit MALUS PUMILA
flowerCROCUS
flowerIMPATIENS
flowerNARCISSUS