A sort specification consists of a SortSpec
object that specifies how to sort members of a particular dimension. A SortSpec
object contains one or more ConditionSortStep
or MemberSortStep
objects.
The ConditionSortStep
class extends the ConditionStep
class and allows for alphabetical, chronological, hierarchical, measure-based, and attribute-based sorting.
The MemberSortStep
class extends the Step
class and allows for manual sorting such as "Move X before Y."
Typically, ConditionSortStep
and MemberSortStep
objects are created when users use the QueryBuilder to sort dimensions. In an HTML-client application, you can use the Sort Tool to create ConditionSortStep
objects.
A SortSpec
object has the following characteristics:
Is represented by an instance of the SortSpec
class in the oracle.dss.selection
package.
Can save and restore its state based on an XML stream. However, it is persisted only as part of a Selection
object.
A ConditionSortStep
object has the following characteristics:
Is represented by an instance of one of the Step
classes in the oracle.dss.selection.sortStep
package.
Can save and restore its state based on an XML stream. However, it is persisted only as part of a Selection
object.
SortSpec
classThe following figure provides a visual representation of the SortSpec
class. This class aggregates the ConditionSortStep
class. The ConditionSortStep
class extends the ConditionStep
class.