From d24c3e9341efbe11b0b6e0afe1d9af369e36dc06 Mon Sep 17 00:00:00 2001 From: Frederik Delaere Date: Mon, 2 Oct 2017 10:56:43 +0200 Subject: [PATCH] display loaded modules in loaded order --- Cargo.toml | 2 +- src/rsmodules.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9b23fcc..10bdc27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rsmodules" -version = "0.5.6" +version = "0.5.7" authors = ["Frederik Delaere "] [dependencies] diff --git a/src/rsmodules.rs b/src/rsmodules.rs index 9ea487e..1c89e9b 100644 --- a/src/rsmodules.rs +++ b/src/rsmodules.rs @@ -587,7 +587,8 @@ fn list(rsmod: &mut Rsmodule) { let mut loadedmodules: Vec<&str> = loadedmodules.split(':').collect(); loadedmodules.retain(|&x| x != ""); - loadedmodules.sort(); + // display loaded modules in loaded order + loadedmodules.reverse(); if loadedmodules.len() > 0 { if rsmod.shell != "noshell" {