Overview
VX/SOR is a complete reimplementation of the OpenVMS SORT/MERGE utility on Linux. It ships two cooperating parts: the callable SOR$ Sort/Merge run-time library that OpenVMS BASIC, COBOL, FORTRAN and C programs call directly, and the SORT and MERGE DCL verbs that parse the VMS command line and drive that same library. Existing calls to SOR$ routines and existing DCL sort scripts move across without changing sort logic.
Under the hood VX/SOR is a classic external merge sort: records accumulate into an in-memory block, each full block is sorted and written to a SORTWORK swap file, then the swap files are combined with a fast buffered k-way merge. The /KEY, /SPECIFICATION, STABLE and NODUPLICATES behaviour matches VMS, and the qualifiers the engine acts on produce identical results to OpenVMS.
