From c58912ba6415ac15e3aa28f2b732be3490731939 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 27 Nov 2023 17:22:16 +0800 Subject: refactor: sort of some complete type (#253) --- src/repl/completer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/repl/completer.rs') diff --git a/src/repl/completer.rs b/src/repl/completer.rs index 02c34a6..b5d4ddb 100644 --- a/src/repl/completer.rs +++ b/src/repl/completer.rs @@ -86,8 +86,7 @@ impl ReplCompleter { pub fn new(config: &GlobalConfig) -> Self { let mut groups = HashMap::new(); - let mut commands: Vec = REPL_COMMANDS.to_vec(); - commands.sort_by(|a, b| a.name.cmp(b.name)); + let commands: Vec = REPL_COMMANDS.to_vec(); for cmd in REPL_COMMANDS.iter() { let name = cmd.name; -- cgit v1.2.3