diff --git a/src/launcher.rs b/src/launcher.rs index 935d52b..bff0ec3 100644 --- a/src/launcher.rs +++ b/src/launcher.rs @@ -177,11 +177,6 @@ where self } - pub fn reverse_sorter(mut self, flag: bool) -> Self { - self.batcher.reverse_sorter = flag; - self - } - /// A batch represents the process of retrieving items from all available sources and sorting the filtered items /// according to user-specified sorters. /// diff --git a/src/launcher/batcher.rs b/src/launcher/batcher.rs index 7e2983c..9c040fa 100644 --- a/src/launcher/batcher.rs +++ b/src/launcher/batcher.rs @@ -27,7 +27,6 @@ pub struct Batcher<'a, Cushion, UIContext> { pub(super) batch_size: usize, pub(super) filter_and: bool, - pub(super) reverse_sorter: bool, state: BatcherState, } @@ -45,7 +44,6 @@ where batch_size: 0, filter_and: true, - reverse_sorter: false, cusion_to_ui: None, @@ -146,13 +144,7 @@ where Equal => { continue; } - ord => { - return if self.reverse_sorter { - ord.reverse() - } else { - ord - }; - } + ord => return ord, } }