summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/files.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/files.rs b/src/files.rs
index d9f4534..de8dc29 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -531,6 +531,12 @@ impl Files {
})
}
}
+
+ // This could be faster if the sorting itself was reversed
+ // instead of reversing everything afterwards.
+ if self.reverse {
+ self.files.reverse();
+ }
}
pub fn cycle_sort(&mut self) {