[bugfix] list_countdown now sorts the returned vector because hashmap iteration is not stable
This commit is contained in:
@@ -71,6 +71,7 @@ impl CountdownService {
|
||||
target_instant: countdown.target_timestamp(),
|
||||
})
|
||||
}
|
||||
snapshots.sort_by(|a, b| a.id.cmp(&b.id));
|
||||
Ok(snapshots)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user