As previously mentioned, there are multiple variations on version/natural sort, each with its own rules. Some examples are:
*(n)will expand to files in natural sort order.
Cprograms, the GNU libc library (
glibc) provides the strvercmp(3) function to compare two strings, and versionsort(3) function to compare two directory entries (despite the names, they are not identical to GNU coreutils’ version sort ordering).