- sort_table(+Table, +File)
- Read the records from the given table, sort them according to the
ordering information on the key field and write the result to the
given filename. Note this may require a lot of memory.
- If Table is a handle to a defined table and the table contains a
key-fields, check that the fields in the table are really sorted
according to the order defined in the table. Errors are reported.