The COBOL SORT statement can be used to sort files and tables in working storage.
SORT
SORT file
SORT table