This may be old news, but ....

After installing Red Hat Linux, I discover the behaviour of
sort has changed, breaking some existing scripts.

Additionally the -n and -g switches do not seem to allow me
to get what I would like.  In fact they do not seem to change
the behaviour of sort at all (for this file anyway).

Incidentally, this file shows forces necessary to support the
6.5 meter telescope mirror at the MMT observatory.

-------------------------------------------------

Here is the unsorted file:

act   51   blue      1.11      -0.54      -0.00      -0.00
act   49   blue     47.93      44.12      -0.00      -0.00
act   45   blue    142.05     136.68     155.67     152.35
act   43   blue    158.43     152.97      -0.00      -0.00
act   37   blue    325.54     322.40    -155.14    -159.15
act   35   blue    337.93     335.04    -156.20    -159.65
act   28   blue    386.91     381.34    -154.61    -156.31
act   26   blue    309.75     304.83    -155.67    -157.57
act   18   blue    117.45     113.26     155.14     149.69
act   16   blue     65.91      62.90     156.20     151.51
act    9   blue    376.21     373.75    -155.67    -160.02
act    7   blue    192.93     188.47      -0.00      -0.00
act    6   blue     98.48      94.88      -0.00      -0.00
act    2   blue     -3.70      -6.61      -0.00      -0.00
act   50 orange     43.99      40.73      -0.00      -0.00
act   48 orange    156.39     152.73      -0.00      -0.00
act   41 orange    131.60     130.74     155.40     149.32
act   39 orange    129.99     127.93     156.46     152.54
act   32 orange    114.65     113.34     154.88     150.52
act   30 orange    108.85     105.09     155.93     151.98
act   24 orange    236.15     233.83      -0.00      -0.00
act   22 orange    359.06     355.08    -155.40    -157.06
act   20 orange    213.13     210.60      -0.00      -0.00
act   14 orange    274.45     272.62     -13.04     -16.81
act   12 orange    121.02     115.78     155.93     153.60
act    4 orange    301.13     298.67      -0.00      -0.00
act   52    red     42.13      37.67      -0.00      -0.00
act   46    red    178.83     172.94      -0.00      -0.00
act   44    red    107.26     104.47     156.20     154.05
act   38    red    257.70     254.27      -0.00      -0.00
act   36    red    322.77     315.76    -155.67    -159.69
act   34    red    146.86     143.60      -0.00      -0.00
act   27    red    337.31     332.25    -155.14    -157.08
act   25    red    193.60     190.65      -0.00      -0.00
act   19    red    297.96     291.06      -0.00      -0.00
act   17    red    112.21     108.64     155.67     153.67
act   15    red    132.30     128.77      -0.00      -0.00
act   10    red    190.13     189.51      -0.00      -0.00
act    8    red    374.88     369.80    -156.20    -159.74
act    3    red     73.83      71.61      -0.00      -0.00
act   47 yellow    269.76     267.10      -0.00      -0.00
act   42 yellow    234.94     232.41     -15.78     -16.35
act   40 yellow    110.80     106.42     155.93     154.37
act   33 yellow    172.97     169.87      -0.00      -0.00
act   31 yellow    106.48     103.96     155.40     151.23
act   29 yellow    219.74     215.55      -0.00      -0.00
act   23 yellow    160.37     157.04      92.02      89.56
act   21 yellow     49.02      43.73     155.93     152.54
act   13 yellow    157.07     153.82     155.40     153.94
act   11 yellow    110.29     108.43     156.46     152.32
act    5 yellow    225.48     224.21      -0.00      -0.00
act    1 yellow     51.43      48.72      -0.00      -0.00
act  151   blue      0.96       9.34      -0.00      -0.00
act  149   blue     37.95      42.30      -0.00      -0.00
act  145   blue    134.55     139.05     157.95     163.10
act  143   blue    156.36     160.50      -0.00      -0.00
act  137   blue    338.01     342.83    -158.48    -153.23
act  135   blue    348.41     353.77    -157.43    -151.91
act  128   blue    385.75     382.96    -159.01    -162.57
act  126   blue    306.93     304.38    -157.95    -161.20
act  118   blue    111.41     107.75     158.48     156.58
act  116   blue     61.39      58.10     157.43     154.98
act  109   blue    375.27     371.05    -157.95    -159.71
act  107   blue    193.11     191.43      -0.00      -0.00
act  106   blue    102.97      99.24      -0.00      -0.00
act  102   blue     -1.39      -3.34      -0.00      -0.00
act  150 orange     43.67      49.05      -0.00      -0.00
act  148 orange    154.30     158.88      -0.00      -0.00
act  141 orange    128.61     133.07     158.22     163.25
act  139 orange    127.59     131.24     157.16     162.96
act  132 orange    119.69     118.20     158.74     153.42
act  130 orange    119.39     115.14     157.69     156.08
act  124 orange    229.53     226.00      -0.00      -0.00
act  122 orange    347.63     345.75    -158.22    -160.18
act  120 orange    206.84     203.93      -0.00      -0.00
act  114 orange    268.97     262.26      13.04      11.37
act  112 orange    115.17     110.69     157.69     153.17
act  104 orange    303.23     297.81      -0.00      -0.00
act  152    red     39.67      44.75      -0.00      -0.00
act  146    red    167.75     170.65      -0.00      -0.00
act  144    red    100.56     105.67     157.43     162.74
act  138    red    259.22     263.95      -0.00      -0.00
act  136    red    339.84     342.98    -157.95    -152.26
act  134    red    148.20     155.69      -0.00      -0.00
act  127    red    336.55     331.17    -158.48    -159.98
act  125    red    185.50     184.18      -0.00      -0.00
act  119    red    303.15     301.61      -0.00      -0.00
act  117    red    101.74      98.45     157.95     154.27
act  115    red    132.34     127.05      -0.00      -0.00
act  110    red    197.06     193.16      -0.00      -0.00
act  108    red    374.02     362.16    -157.43    -159.20
act  103    red     74.30      68.92      -0.00      -0.00
act  147 yellow    267.98     274.02      -0.00      -0.00
act  142 yellow    204.60     206.87      15.78      19.62
act  140 yellow    109.51     112.10     157.69     160.24
act  133 yellow    173.97     177.20      -0.00      -0.00
act  131 yellow    119.15     114.07     158.22     155.61
act  129 yellow    222.40     227.96      -0.00      -0.00
act  123 yellow    149.35     146.38      95.89      93.68
act  121 yellow     35.13      32.00     157.69     155.69
act  113 yellow    154.24     151.97     158.22     154.22
act  111 yellow    109.24     105.48     157.16     154.39
act  105 yellow    226.08     221.79      -0.00      -0.00
act  101 yellow     54.07      52.36      -0.00      -0.00

-------------------------------------------------

Here it is after sort version 1.22 (nice!)

act    1 yellow     51.43      48.72      -0.00      -0.00
act    2   blue     -3.70      -6.61      -0.00      -0.00
act    3    red     73.83      71.61      -0.00      -0.00
act    4 orange    301.13     298.67      -0.00      -0.00
act    5 yellow    225.48     224.21      -0.00      -0.00
act    6   blue     98.48      94.88      -0.00      -0.00
act    7   blue    192.93     188.47      -0.00      -0.00
act    8    red    374.88     369.80    -156.20    -159.74
act    9   blue    376.21     373.75    -155.67    -160.02
act   10    red    190.13     189.51      -0.00      -0.00
act   11 yellow    110.29     108.43     156.46     152.32
act   12 orange    121.02     115.78     155.93     153.60
act   13 yellow    157.07     153.82     155.40     153.94
act   14 orange    274.45     272.62     -13.04     -16.81
act   15    red    132.30     128.77      -0.00      -0.00
act   16   blue     65.91      62.90     156.20     151.51
act   17    red    112.21     108.64     155.67     153.67
act   18   blue    117.45     113.26     155.14     149.69
act   19    red    297.96     291.06      -0.00      -0.00
act   20 orange    213.13     210.60      -0.00      -0.00
act   21 yellow     49.02      43.73     155.93     152.54
act   22 orange    359.06     355.08    -155.40    -157.06
act   23 yellow    160.37     157.04      92.02      89.56
act   24 orange    236.15     233.83      -0.00      -0.00
act   25    red    193.60     190.65      -0.00      -0.00
act   26   blue    309.75     304.83    -155.67    -157.57
act   27    red    337.31     332.25    -155.14    -157.08
act   28   blue    386.91     381.34    -154.61    -156.31
act   29 yellow    219.74     215.55      -0.00      -0.00
act   30 orange    108.85     105.09     155.93     151.98
act   31 yellow    106.48     103.96     155.40     151.23
act   32 orange    114.65     113.34     154.88     150.52
act   33 yellow    172.97     169.87      -0.00      -0.00
act   34    red    146.86     143.60      -0.00      -0.00
act   35   blue    337.93     335.04    -156.20    -159.65
act   36    red    322.77     315.76    -155.67    -159.69
act   37   blue    325.54     322.40    -155.14    -159.15
act   38    red    257.70     254.27      -0.00      -0.00
act   39 orange    129.99     127.93     156.46     152.54
act   40 yellow    110.80     106.42     155.93     154.37
act   41 orange    131.60     130.74     155.40     149.32
act   42 yellow    234.94     232.41     -15.78     -16.35
act   43   blue    158.43     152.97      -0.00      -0.00
act   44    red    107.26     104.47     156.20     154.05
act   45   blue    142.05     136.68     155.67     152.35
act   46    red    178.83     172.94      -0.00      -0.00
act   47 yellow    269.76     267.10      -0.00      -0.00
act   48 orange    156.39     152.73      -0.00      -0.00
act   49   blue     47.93      44.12      -0.00      -0.00
act   50 orange     43.99      40.73      -0.00      -0.00
act   51   blue      1.11      -0.54      -0.00      -0.00
act   52    red     42.13      37.67      -0.00      -0.00
act  101 yellow     54.07      52.36      -0.00      -0.00
act  102   blue     -1.39      -3.34      -0.00      -0.00
act  103    red     74.30      68.92      -0.00      -0.00
act  104 orange    303.23     297.81      -0.00      -0.00
act  105 yellow    226.08     221.79      -0.00      -0.00
act  106   blue    102.97      99.24      -0.00      -0.00
act  107   blue    193.11     191.43      -0.00      -0.00
act  108    red    374.02     362.16    -157.43    -159.20
act  109   blue    375.27     371.05    -157.95    -159.71
act  110    red    197.06     193.16      -0.00      -0.00
act  111 yellow    109.24     105.48     157.16     154.39
act  112 orange    115.17     110.69     157.69     153.17
act  113 yellow    154.24     151.97     158.22     154.22
act  114 orange    268.97     262.26      13.04      11.37
act  115    red    132.34     127.05      -0.00      -0.00
act  116   blue     61.39      58.10     157.43     154.98
act  117    red    101.74      98.45     157.95     154.27
act  118   blue    111.41     107.75     158.48     156.58
act  119    red    303.15     301.61      -0.00      -0.00
act  120 orange    206.84     203.93      -0.00      -0.00
act  121 yellow     35.13      32.00     157.69     155.69
act  122 orange    347.63     345.75    -158.22    -160.18
act  123 yellow    149.35     146.38      95.89      93.68
act  124 orange    229.53     226.00      -0.00      -0.00
act  125    red    185.50     184.18      -0.00      -0.00
act  126   blue    306.93     304.38    -157.95    -161.20
act  127    red    336.55     331.17    -158.48    -159.98
act  128   blue    385.75     382.96    -159.01    -162.57
act  129 yellow    222.40     227.96      -0.00      -0.00
act  130 orange    119.39     115.14     157.69     156.08
act  131 yellow    119.15     114.07     158.22     155.61
act  132 orange    119.69     118.20     158.74     153.42
act  133 yellow    173.97     177.20      -0.00      -0.00
act  134    red    148.20     155.69      -0.00      -0.00
act  135   blue    348.41     353.77    -157.43    -151.91
act  136    red    339.84     342.98    -157.95    -152.26
act  137   blue    338.01     342.83    -158.48    -153.23
act  138    red    259.22     263.95      -0.00      -0.00
act  139 orange    127.59     131.24     157.16     162.96
act  140 yellow    109.51     112.10     157.69     160.24
act  141 orange    128.61     133.07     158.22     163.25
act  142 yellow    204.60     206.87      15.78      19.62
act  143   blue    156.36     160.50      -0.00      -0.00
act  144    red    100.56     105.67     157.43     162.74
act  145   blue    134.55     139.05     157.95     163.10
act  146    red    167.75     170.65      -0.00      -0.00
act  147 yellow    267.98     274.02      -0.00      -0.00
act  148 orange    154.30     158.88      -0.00      -0.00
act  149   blue     37.95      42.30      -0.00      -0.00
act  150 orange     43.67      49.05      -0.00      -0.00
act  151   blue      0.96       9.34      -0.00      -0.00
act  152    red     39.67      44.75      -0.00      -0.00

-------------------------------------------------

Here it is after sort version 2.0 (not so nice)

act  101 yellow     54.07      52.36      -0.00      -0.00
act  102   blue     -1.39      -3.34      -0.00      -0.00
act  103    red     74.30      68.92      -0.00      -0.00
act  104 orange    303.23     297.81      -0.00      -0.00
act  105 yellow    226.08     221.79      -0.00      -0.00
act  106   blue    102.97      99.24      -0.00      -0.00
act  107   blue    193.11     191.43      -0.00      -0.00
act  108    red    374.02     362.16    -157.43    -159.20
act  109   blue    375.27     371.05    -157.95    -159.71
act   10    red    190.13     189.51      -0.00      -0.00
act  110    red    197.06     193.16      -0.00      -0.00
act  111 yellow    109.24     105.48     157.16     154.39
act  112 orange    115.17     110.69     157.69     153.17
act  113 yellow    154.24     151.97     158.22     154.22
act  114 orange    268.97     262.26      13.04      11.37
act  115    red    132.34     127.05      -0.00      -0.00
act  116   blue     61.39      58.10     157.43     154.98
act  117    red    101.74      98.45     157.95     154.27
act  118   blue    111.41     107.75     158.48     156.58
act  119    red    303.15     301.61      -0.00      -0.00
act   11 yellow    110.29     108.43     156.46     152.32
act  120 orange    206.84     203.93      -0.00      -0.00
act  121 yellow     35.13      32.00     157.69     155.69
act  122 orange    347.63     345.75    -158.22    -160.18
act  123 yellow    149.35     146.38      95.89      93.68
act  124 orange    229.53     226.00      -0.00      -0.00
act  125    red    185.50     184.18      -0.00      -0.00
act  126   blue    306.93     304.38    -157.95    -161.20
act  127    red    336.55     331.17    -158.48    -159.98
act  128   blue    385.75     382.96    -159.01    -162.57
act  129 yellow    222.40     227.96      -0.00      -0.00
act   12 orange    121.02     115.78     155.93     153.60
act  130 orange    119.39     115.14     157.69     156.08
act  131 yellow    119.15     114.07     158.22     155.61
act  132 orange    119.69     118.20     158.74     153.42
act  133 yellow    173.97     177.20      -0.00      -0.00
act  134    red    148.20     155.69      -0.00      -0.00
act  135   blue    348.41     353.77    -157.43    -151.91
act  136    red    339.84     342.98    -157.95    -152.26
act  137   blue    338.01     342.83    -158.48    -153.23
act  138    red    259.22     263.95      -0.00      -0.00
act  139 orange    127.59     131.24     157.16     162.96
act   13 yellow    157.07     153.82     155.40     153.94
act  140 yellow    109.51     112.10     157.69     160.24
act  141 orange    128.61     133.07     158.22     163.25
act  142 yellow    204.60     206.87      15.78      19.62
act  143   blue    156.36     160.50      -0.00      -0.00
act  144    red    100.56     105.67     157.43     162.74
act  145   blue    134.55     139.05     157.95     163.10
act  146    red    167.75     170.65      -0.00      -0.00
act  147 yellow    267.98     274.02      -0.00      -0.00
act  148 orange    154.30     158.88      -0.00      -0.00
act  149   blue     37.95      42.30      -0.00      -0.00
act   14 orange    274.45     272.62     -13.04     -16.81
act  150 orange     43.67      49.05      -0.00      -0.00
act  151   blue      0.96       9.34      -0.00      -0.00
act  152    red     39.67      44.75      -0.00      -0.00
act   15    red    132.30     128.77      -0.00      -0.00
act   16   blue     65.91      62.90     156.20     151.51
act   17    red    112.21     108.64     155.67     153.67
act   18   blue    117.45     113.26     155.14     149.69
act   19    red    297.96     291.06      -0.00      -0.00
act    1 yellow     51.43      48.72      -0.00      -0.00
act   20 orange    213.13     210.60      -0.00      -0.00
act   21 yellow     49.02      43.73     155.93     152.54
act   22 orange    359.06     355.08    -155.40    -157.06
act   23 yellow    160.37     157.04      92.02      89.56
act   24 orange    236.15     233.83      -0.00      -0.00
act   25    red    193.60     190.65      -0.00      -0.00
act   26   blue    309.75     304.83    -155.67    -157.57
act   27    red    337.31     332.25    -155.14    -157.08
act   28   blue    386.91     381.34    -154.61    -156.31
act   29 yellow    219.74     215.55      -0.00      -0.00
act    2   blue     -3.70      -6.61      -0.00      -0.00
act   30 orange    108.85     105.09     155.93     151.98
act   31 yellow    106.48     103.96     155.40     151.23
act   32 orange    114.65     113.34     154.88     150.52
act   33 yellow    172.97     169.87      -0.00      -0.00
act   34    red    146.86     143.60      -0.00      -0.00
act   35   blue    337.93     335.04    -156.20    -159.65
act   36    red    322.77     315.76    -155.67    -159.69
act   37   blue    325.54     322.40    -155.14    -159.15
act   38    red    257.70     254.27      -0.00      -0.00
act   39 orange    129.99     127.93     156.46     152.54
act    3    red     73.83      71.61      -0.00      -0.00
act   40 yellow    110.80     106.42     155.93     154.37
act   41 orange    131.60     130.74     155.40     149.32
act   42 yellow    234.94     232.41     -15.78     -16.35
act   43   blue    158.43     152.97      -0.00      -0.00
act   44    red    107.26     104.47     156.20     154.05
act   45   blue    142.05     136.68     155.67     152.35
act   46    red    178.83     172.94      -0.00      -0.00
act   47 yellow    269.76     267.10      -0.00      -0.00
act   48 orange    156.39     152.73      -0.00      -0.00
act   49   blue     47.93      44.12      -0.00      -0.00
act    4 orange    301.13     298.67      -0.00      -0.00
act   50 orange     43.99      40.73      -0.00      -0.00
act   51   blue      1.11      -0.54      -0.00      -0.00
act   52    red     42.13      37.67      -0.00      -0.00
act    5 yellow    225.48     224.21      -0.00      -0.00
act    6   blue     98.48      94.88      -0.00      -0.00
act    7   blue    192.93     188.47      -0.00      -0.00
act    8    red    374.88     369.80    -156.20    -159.74
act    9   blue    376.21     373.75    -155.67    -160.02

Reply via email to