default, groups appear in ascending order of the BY values. In some
cases you want to emphasize the order in which the observations are
sorted, not the fact that they can be grouped. For example, you might
want to alphabetize the tours by country.
To sort your data in
a particular order, use the SORT procedure just as you do for grouped
data. When the sorted order is more important than the grouping, you
usually want only one observation with a given BY value in the resulting
data set. Therefore, you might need to remove duplicate observations.
Operating Environment Information: The SORT procedure accesses either a sorting utility that is supplied as part of SAS, or a sorting utility that ...