Sorting special elements
There are a number of rules that apply when sorting axes that contain special elements. The default behavior depends on the element type.
The following element types are sorted by default:
▪elements formed from a standard category
▪nets
▪elements created by combining categorical variables
The following element types have a fixed position by default:
▪base
▪unweighted base
▪mean
▪standard deviation
▪standard error
▪sample variance
▪subtotal
▪total
▪minimum
▪maximum.
When an element has a fixed position, it means that if the element is the third element in the unsorted table, it will be the third element in the sorted table and elements that are sorted will move around it, when necessary. For this reason, it is usual to place unsorted elements at the beginning or end of the axis.
Text-only elements are never sorted. Unlike nets, they are not tied to the elements that follow. This means that text-only elements are not generally suitable for use in sorted tables.
For all element types apart from text-only elements, you can change the default sort behavior using the
IsFixed property. For more information, see
Element properties.
See also