SORT# returns SORT# returns a string containing a sorted Telitab set
SORT#(Telitab$, SortPar$, [Mode%=0 or 1])
...
Before explaining the SORT# function, some words on unfolding a Telitab set for a particular parameter. Unfolding implies that the record(s) containing this parameter are moved to the top of the hierarchy.
...
To unfold a Telitab set for a particular parameter implies that the record(s) containing this parameter are moved to the top of the hierarchy. If UnfoldPar$ = "NullString", no unfolding is performed.
The SORT#() function unfolds and sorts de telitab like in the following example:
SORT#(Telitab_1$, "LPP", 0)
or
SORT#(Telitab_1$, "LPP"))
returns:
1
"PROJECTS"
{
1
"CLIENT$" "YardX"
}
-4 "1" "2" "3" "4"
"MODMAT$" "wood" "wood" "foam" "plywood"
"LPP" 98.60 112.30 133.80 145.00
"B" 16.42 17.80 21.50 22.40
"T" 6.70 7.65 9.20 9.40
SORT#(Telitab_1$, "LPP", 1)
returns:
...
"No valid Sort parameter: "ParName" given in SORT# function."
Quick links: Function overview | Attribute overview | Constants overview | Dimensions overview