FastSort Manual

Sorting Interactively
FastSort Manual429834-003
2-7
Running a Record Sort
11 Hoptree PTELEA TRIFOLIATA shrub 27
12 Catclaw Acacia ACACIA GREGGII shrub 12
Running a Record Sort
A record sort reorders input records according to the values of one or more key fields.
The following commands tell FastSort to reorder the records from PLANTS1 and
PLANTS2 by using the values in three key fields and to write the records to the file
named SORTOUT:
17> SORT
FastSort - T9620D30 - (31OCT94)
COPYRIGHT TANDEM COMPUTERS INCORPORATED 1991 - 1994
<FROM PLANTS1
<FROM PLANTS2
<TO SORTOUT
<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
117 COMPARES 0 MERGE ORDER
0 SCRATCH DISK
0 SCRATCH SEEKS
2 DUPLICATES
The REMOVEDUPS parameter tells FastSort to remove any record that has the same
values in all the key fields as a previous record. After the sort run, the SORTOUT file
contains all the input records in sorted order, except for two records that have duplicate
key-field values. FastSort preserves only the first occurrence of these records. The
following example shows the contents of the SORTOUT file.
04 Ohio Buckeye AESCULUS GLABRA tree 02
02 Weeping Fig FICUS BENJAMINA tree 15
08 Rubber FICUS ELASTICA tree 04
09 Fiddleleaf Fig FICUS LYRATA tree 01
06 Red Juniper JUNIPERUS VIRGINIANA tree 14
08 California Oak QUERCUS AGRIFOLIA tree 65
01 Chinquapin Oak QUERCUS MUEHLENBERGII tree 33
03 Slippery Elm ULMUS RUBRA tree 10
12 Catclaw Acacia ACACIA GREGGII shrub 12
09 Red Mulberry MORUS RUBRA shrub 24
05 Mesquite PROSOPIC JULIFLORA shrub 48
07 American Plum PRUNUS AMERICANA shrub 37
11 Hoptree PTELEA TRIFOLIATA shrub 27
10 Parlor Palm CHAMAEDOREA ELEGANS indoor 03
07 Grape Ivy CISSUS RHOMBIFOLIA indoor 07
13 Boston Fern NEPHROLEPIS EXALTATA indoor 18
01 Aluminum PILEA CADIEREI indoor 22
05 Artillery PILEA MICROPHYLLA indoor 10
11 Piggy-back TOLMIEA MENZIESII indoor 13
10 Apple MALUS PUMILA fruit 35
04 Crocus CROCUS flower 53