Fix LocalizationTable output order by switching to a BTreeMap.

ACTUALLY closes #173.
This commit is contained in:
Lucien Greathouse
2019-10-14 17:29:34 -07:00
parent 126040a87b
commit 5d0aa1193f
2 changed files with 4 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
use std::{
borrow::Cow,
collections::HashMap,
collections::{BTreeMap, HashMap},
fmt,
path::{Path, PathBuf},
str,
@@ -631,7 +631,8 @@ fn snapshot_csv_file<'source>(
#[serde(skip_serializing_if = "Option::is_none")]
source: Option<&'a str>,
values: HashMap<&'a str, &'a str>,
// We use a BTreeMap here to get deterministic output order.
values: BTreeMap<&'a str, &'a str>,
}
let instance_name = file.path