File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 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::*;
3737use std:: ascii:: OwnedAsciiExt ;
3838use std:: cell:: RefCell ;
3939use std:: cmp:: Ordering ;
40- use std:: collections:: { HashMap , HashSet } ;
40+ use std:: collections:: { BTreeMap , HashMap , HashSet } ;
4141use std:: default:: Default ;
4242use std:: fmt;
4343use std:: fs:: { self , File } ;
@@ -1319,8 +1319,9 @@ impl Context {
13191319 }
13201320 }
13211321
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 ( ) ;
13241325 for item in & m. items {
13251326 if self . ignore_private_item ( item) { continue }
13261327
You can’t perform that action at this time.
0 commit comments