sort.values Function (GPL)
Syntax
sort.values("category name" ...)
"category name". The name of a category in the data. Delineate each name with a comma.
Description
Sorts the categorical values based on the order in which they appear in this function. You do not need to specify every category. The categories will be ordered as they appear, and any other categories that are not specified will appear in the order they appear in the data. If you are using this function with a data file from IBM® SPSS® Statistics, you need to specify the data values for the categories, not the data labels that appear in the resulting visualization.
Examples
SCALE: cat(dim(1), sort.values("Male"))
In this example, Male will appear first. It is not necessary to specify that Female will appear next.