Implementation Details (GNU Coreutils 9.0)

From Get docs

30.2 Implementation Details

GNU coreutils’ version sort algorithm is based on Debian’s versioning scheme, specifically on the "upstream version" part.

This section describes the ordering rules.

The next section (Differences from the official Debian Algorithm) describes some differences between GNU coreutils implementation and Debian’s official algorithm.

Version-sort ordering rules   
Version sort is not the same as numeric sort   
Punctuation Characters   
Punctuation Characters vs letters   
Tilde ‘~’ character   
Version sort uses ASCII order, ignores locale, unicode characters