Retrieves the order of columns.
When the function returns, the array piArray will be filled by integer values each of them specifies the current order of a column.