change records map to BTreeMap to get stable ordering by entry ID
This commit is contained in:
+2
-1
@@ -6,6 +6,7 @@ use std::collections::HashMap;
|
||||
use std::fs::{File, OpenOptions};
|
||||
use std::io::{Read, Write};
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
pub mod form;
|
||||
pub mod model;
|
||||
@@ -35,7 +36,7 @@ struct RepositoryConfig {
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct Cards {
|
||||
#[serde(default)]
|
||||
pub cards: IndexMap<usize, Value>,
|
||||
pub cards: BTreeMap<usize, Value>,
|
||||
#[serde(default)]
|
||||
pub counter: usize,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user