Siebel Tools Reference > Business Objects Layer > Business Components >

Sort Specification Property


The value in the Sort Specification property, if it is non-blank, is the name of a field or list of fields that imposes a sort order on the records returned to an applet that is associated with this business component. The field or fields must be child object definitions of the business component.

For example, the Account business component (as delivered in Siebel applications) has a Sort Specification property value of "Name, Location." This indicates that account records are provided in Name (account name) order, and where multiple account records have the same Name, they are to be sorted within Name by Account Location.

Observe the following syntax considerations:

Be aware that sort specifications have the following behaviors:

NOTE:  If a predefined query exists, it can potentially override a sort specification that has been defined as a property of the business component.

Improperly chosen sort specifications can hurt performance. This is particularly true when the sorting is on fields based on joins. Siebel Expert Services will review any custom search or sort specifications when performing a configuration review, in order to identify any potential performance issues.

Siebel applications force the sort in the All visibility mode to be on the primary key. The sort in Manager mode is on a column in the denormalized reporting relationship table. Users can still sort records after the initial query. For better performance, you should sort records after filtering for a small record set.

NOTE:  Null records will always appear at the top of the record-set if a sort specification is placed on a field with null values.


 Siebel Tools Reference
 Published: 20 October 2003