File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ pub use self::ExternalLocation::*;
37
37
use std:: ascii:: OwnedAsciiExt ;
38
38
use std:: cell:: RefCell ;
39
39
use std:: cmp:: Ordering ;
40
- use std:: collections:: { HashMap , HashSet } ;
40
+ use std:: collections:: { BTreeMap , HashMap , HashSet } ;
41
41
use std:: default:: Default ;
42
42
use std:: fmt;
43
43
use std:: fs:: { self , File } ;
@@ -1319,8 +1319,9 @@ impl Context {
1319
1319
}
1320
1320
}
1321
1321
1322
- fn build_sidebar_items ( & self , m : & clean:: Module ) -> HashMap < String , Vec < NameDoc > > {
1323
- let mut map = HashMap :: new ( ) ;
1322
+ fn build_sidebar_items ( & self , m : & clean:: Module ) -> BTreeMap < String , Vec < NameDoc > > {
1323
+ // BTreeMap instead of HashMap to get a sorted output
1324
+ let mut map = BTreeMap :: new ( ) ;
1324
1325
for item in & m. items {
1325
1326
if self . ignore_private_item ( item) { continue }
1326
1327
You can’t perform that action at this time.
0 commit comments