Library: Utilities (OMUTIL legacy)
define function UTIL_SortIntegersByKey modifiable integer intshelf
Use UTIL_SortIntegersByKey to sort a shelf of integers by their keys in ascending order.
You must include the following line at the beginning of your OmniMark program:
intshelf must have a key for every item (else OmniMark Error 6052).
You may want to write a function to build your keyed integer shelf from your existing data.