A table can be sorted according to the ascending/descending values in a given column with the routine TBCSRT.
Searching for an element in a given column is done with the routine where x defines the type of the argument. TBESRx (TCESRx).