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" {