Caché ObjectScript Reference
$ZSORT (legacy function)
[Home] [Back] 
InterSystems: The power behind what matters   

Returns the next subscript in the array of the specified subscripted variable.
variable A subscripted local or global variable. The subscript is required; you cannot specify just the array name.
direction Optional — The subscript order in which to traverse the target array. Use 1 (the default) for ascending subscript order and -1 for descending subscript order.
This page describes the legacy function $ZSORT. It is described here for compatibility with legacy applications. $ZSORT is identical to the $ORDER function in Caché, which is the function call that should be used for new applications.
$ZSORT returns the next subscript in the subscripted variable. The variable parameter can specify a subscripted local or global variable.
See Also

Send us comments on this page
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA