Did you know ... Search Documentation:
table_util.pl -- Tabular file handling utilities
PublicShow source
Source 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.
Source verify_table_order(+Table)
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.