summaryrefslogtreecommitdiffstats
path: root/src/poem/anthology/export.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/poem/anthology/export.rs')
-rw-r--r--src/poem/anthology/export.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/poem/anthology/export.rs b/src/poem/anthology/export.rs
index dfbaf81..aa5a894 100644
--- a/src/poem/anthology/export.rs
+++ b/src/poem/anthology/export.rs
@@ -1,4 +1,5 @@
use crate::poem::Verse;
+use std::collections::BTreeMap;
use std::env;
/// export
@@ -26,7 +27,8 @@ pub fn incant(verse: &Verse) -> i32 {
}
}
None => {
- for (key, val) in env::vars() {
+ let sorted: BTreeMap<_, _> = env::vars().into_iter().collect();
+ for (key, val) in sorted {
println!("{}={}", key, val);
}
}