diff --git a/dev/src/uu_ls/ls.rs.html b/dev/src/uu_ls/ls.rs.html index 24bf51e37..356ccef6a 100644 --- a/dev/src/uu_ls/ls.rs.html +++ b/dev/src/uu_ls/ls.rs.html @@ -3157,6 +3157,8 @@ 3157 3158 3159 +3160 +3161
// This file is part of the uutils coreutils package.
 //
 // (c) Jeremiah Peschka <jeremiah.peschka@gmail.com>
@@ -5091,8 +5093,10 @@
         Sort::Size => entries.sort_by_key(|k| Reverse(k.md(out).map(|md| md.len()).unwrap_or(0))),
         // The default sort in GNU ls is case insensitive
         Sort::Name => entries.sort_by(|a, b| a.display_name.cmp(&b.display_name)),
-        Sort::Version => entries
-            .sort_by(|a, b| version_cmp(&a.p_buf.to_string_lossy(), &b.p_buf.to_string_lossy())),
+        Sort::Version => entries.sort_by(|a, b| {
+            version_cmp(&a.p_buf.to_string_lossy(), &b.p_buf.to_string_lossy())
+                .then(a.p_buf.to_string_lossy().cmp(&b.p_buf.to_string_lossy()))
+        }),
         Sort::Extension => entries.sort_by(|a, b| {
             a.p_buf
                 .extension()
diff --git a/dev/uu_ls/index.html b/dev/uu_ls/index.html
index 4646d972c..5dd66a939 100644
--- a/dev/uu_ls/index.html
+++ b/dev/uu_ls/index.html
@@ -1 +1 @@
-uu_ls - Rust
\ No newline at end of file +uu_ls - Rust
\ No newline at end of file