contents.gifindex.gifprev1.gifnext1.gif

Collection_Sort

Purpose

Sorts the collection.

Arguments

Collection_Sort( <coll>, <attribute_list> )

Example

In the example, the result of the Collection_Create is a collection with attributes CMDTY_CLASS,QTY_LABL,CAT,CHRG_AMT.

This collection is sorted major-to-minor by the values of QTY_LABL, and CMDTY_CLASS.

Collection_Sort(

Collection_Create

( "" , "FB_LN" , "SELF![CAT]='FREIGHT'",
"[CMDTY_CLASS][QTY_LABL][CAT][CHRG_AMT]")

, "[QTY_LABL][CMDTY_CLASS]" //Attribute List.

)