diff --git a/rust/src/methods/encode/html.rs b/rust/src/methods/encode/html.rs
index 67ab3aa1c3..66029db37f 100644
--- a/rust/src/methods/encode/html.rs
+++ b/rust/src/methods/encode/html.rs
@@ -4,7 +4,6 @@ use eyre::Result;
use html_escape::{encode_double_quoted_attribute, encode_safe};
use itertools::Itertools;
use std::cmp::min;
-use std::collections::HashMap;
use std::fs;
use std::{collections::BTreeMap, path::PathBuf};
use stencila_schema::*;
@@ -976,7 +975,7 @@ impl ToHtml for Article {
// Create a map of organization name to Organization, in the order
// they appear in affiliations.
- let orgs: HashMap = match &self.authors {
+ let orgs: BTreeMap = match &self.authors {
Some(authors) => authors
.iter()
.filter_map(|author| match author {
@@ -991,7 +990,7 @@ impl ToHtml for Article {
})
.flatten()
.collect(),
- None => HashMap::new(),
+ None => BTreeMap::new(),
};
let orgs = orgs.values().cloned().collect();