The SOR$END_SORT routine performs cleanup functions, such as closing files and releasing memory. Format SOR$END_SORT [context]