The built-in sort of INPUT ARRAY

The INPUT ARRAY dialog implements built-in row sorting which can be used if the dialog is combined with a TABLE or a TREE container. When the end user clicks on a column header of the list view, the rows are automatically sorted in ascending or descending order.