WorkQue_Sort Statement

Sets and displays the Sort type of the specified work queue.

Syntax
WorkQue_Sort WorkQueNum [, SortMethod ]

Parameters

WorkQueNum
Specifies the work queue number as an integer (1-16).
SortMethod
Specify the Sort method with an integer expression (0 to 6) or with the following constant. This can be omitted if executed from the command window. If omitted, the current Sort method is displayed.

Constant Value Description
QUE_SORT_NONE 0 No sorting (registration order to work queue)
QUE_SORT_POS_X 1 X coordinate ascending order
QUE_SORT_INV_X 2 X coordinate descending order
QUE_SORT_POS_Y 3 Y coordinate ascending order
QUE_SORT_INV_Y 4 Y coordinate descending order
QUE_SORT_POS_USER 5 User data (real value) ascending order
QUE_SORT_INV_USER 6 User data (real value) descending order

Description
Sets the Sort method to the work queue. When the point data and the user data are added by WorkQue_Add, they are registered to the work queue according to the specified Sort method.

When the user data is set again by WorkQue_UserData, the order of the work queues is changed according to the specified Sort method.

WorkQue_Sort should be executed before adding the work queue data (point data and user data) to the work queue data by WorkQue_Add.

WorkQue_Sort should be executed before setting the user data again by WorkQue_UserData.

Sort method can be set for each work queue.

See Also
WorkQue_Add, WorkQue_UserData

WorkQue_Sort Statement Example

WorkQue_Sort 1, QUE_SORT_POS_X