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::*;
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 } ;
@@ -1298,8 +1298,9 @@ impl Context {
1298
1298
}
1299
1299
}
1300
1300
1301
- fn build_sidebar_items ( & self , m : & clean:: Module ) -> HashMap < String , Vec < NameDoc > > {
1302
- let mut map = HashMap :: new ( ) ;
1301
+ fn build_sidebar_items ( & self , m : & clean:: Module ) -> BTreeMap < String , Vec < NameDoc > > {
1302
+ // BTreeMap instead of HashMap to get a sorted output
1303
+ let mut map = BTreeMap :: new ( ) ;
1303
1304
for item in & m. items {
1304
1305
if self . ignore_private_item ( item) { continue }
1305
1306
You can’t perform that action at this time.
0 commit comments