Loading

VALUESORT


gts
Since v1.0.0
Available on all platforms

Sorts values of the Geo Time Series™ in ascending order.

The function VALUESORT takes the GTS on top of the stack and sort its values (and associated locations/elevations) in ascending order.

Signature

Examples

// Create a new GTS with ten values NEWGTS 'test name' RENAME { 'label0' '42' 'label1' 'foo' } RELABEL 100 NaN NaN NaN 3 ADDVALUE 200 NaN NaN NaN 2 ADDVALUE 230 NaN NaN NaN 2 ADDVALUE 215 NaN NaN NaN 2 ADDVALUE 300 NaN NaN NaN 1 ADDVALUE VALUESORT