home *** CD-ROM | disk | FTP | other *** search
/ Shareware Gold 1 / The_Golden_ROM_Series_-_Shareware_Gold_Volume_1_Number_11_-_SK_89-301_-_1989.iso / LIB017 / SORTING.HLP < prev    next >
Text File  |  1986-10-01  |  5KB  |  101 lines

  1.  
  2.                                    SORTING
  3.  
  4.     PC-TYPE+ SORTING CAPABILITIES
  5.  
  6.     · You may sort the entire file or any set of adjacent lines
  7.     · You may sort up to 8 fields simultaneously
  8.     · The fields may be any length and may overlap
  9.     · Each sort field may be defined to be sorted ascending or descending
  10.     · Each sort field may be defined to be case sensitive or insensitive
  11.     · You may sort so that the lines of your text are rearranged based
  12.       on the result of your sort or
  13.     · You may sort the information within a column of data only.
  14.  
  15.     All of these options are available to you with a few simple
  16.     keystrokes. This file will show you how to use them all.
  17.  
  18.  
  19.                               Press the PgDn Key
  20.  
  21.                              SORTING (continued)
  22.  
  23.     >Smith1         Normally when you sort, you block the area of interest
  24.      Jones2         using the CtrlB keys.  (You may use AltL marking
  25.      Adams3         also.)  We will do a simple column sort here to
  26.      Brown4         display the simplest sort using the entire field
  27.      aaron5         defined.  The default sort is case sensitive, that
  28.      Duffy6         is, a distinction is made between upper and lower case
  29.      Green7<        characters, and is ascending.
  30.           ^
  31.     Move the cursor to the right of the '>' and press CtrlB.  Next move
  32.     the cursor to the left of the '<' and press CtrlB.  Now press F7 and
  33.     select F6, "Sort in Column".  Forget the field marker for now - just
  34.     press F10 (or the Enter key).  As you can see, the data was sorted
  35.     only in the marked column.  "aaron" is at the bottom since this was a
  36.     case sensitive sort and "a" comes after "S" in the standard character
  37.     order.  Repeat the process but this time place a small "a" in the
  38.     field when it appears above the "^" and press Enter twice.
  39.                               Press the PgDn Key
  40.  
  41.                              SORTING (continued)
  42.  
  43.     In the second sort you performed above, you told PC-TYPE+ to sort in
  44.     ascending order on the numerical data in the column in which you
  45.     placed the "a".  In essence, you defined a "sort field" with that "a".
  46.  
  47.     There are four letters you may use to define the extent of each field
  48.     of the sort:
  49.  
  50.     "a" -- sort this field  ascending and case insensitive
  51.     "A" -- sort this field  ascending and case   sensitive
  52.     "d" -- sort this field descending and case insensitive
  53.     "D" -- sort this field descending and case   sensitive
  54.  
  55.     for example, if you wanted to sort the column under the 'x's as
  56.     descending and case sensitive, you would place   aaaaxxxxxbbbbb
  57.     'D's in the field as shown to the right.             DDDDD
  58.  
  59.                               Press the PgDn Key
  60.  
  61.                              SORTING (continued)
  62.  
  63.     >Smith          98044a   This time we will move entire lines based
  64.      Jones          98090b   on the result of the sort.  Obviously, the
  65.      Adams          98090c   text you are reading will become messed up
  66.      Peterson       98044d   after the sort since we will not be doing a
  67.      winbigler      98052e   column sort.  We will first sort on the zip
  68.      adams          98090f   code in descending order, and then on the
  69.      winbigler      98052g   names as case insensitive and ascending.
  70.      winbigler      98077h   Block the area as before to the right and
  71.      jones          98077i<  left of the ">" and "<" characters and press
  72.      aaaaaaaaa      ddddd    F7 and then F5 ("Sort Rows").  Now place the
  73.     "d"s in the field as shown and press Enter.  Then place the "a"s in
  74.     the field as shown and press Enter.  You have just defined fields one
  75.     and two.  Now press Enter again.  As you see, the entire line was
  76.     moved, and the zip codes are in descending order and the names in
  77.     ascending order when the zip codes are identical.  See if you can
  78.     restore the original order.
  79.                               Press the PgDn Key
  80.  
  81.                              SORTING (continued)
  82.  
  83.  
  84.     It is unlikely you will ever want to use more than 4 sort fields, and
  85.     most of the time you will only want to use one.  But as you saw above,
  86.     it is very easy to define what you want to sort and how you want to
  87.     sort it.
  88.  
  89.     If you do not mark a field but merely press F10 (or Enter), then
  90.     PC-TYPE+ assumes the sort is case sensitive, ascending, and applies to
  91.     the entire width of the blocked area.
  92.  
  93.     If you begin a sort and decide you really don't want to sort it after
  94.     all, what else?  Press the Esc key!
  95.  
  96.  
  97.  
  98.  
  99.                      Press F4 to Return to the HELP Menu
  100.  
  101.