@@ -12,7 +12,6 @@ use super::util::AnchorCtx;
1212use super :: util:: BreadcrumbsCtx ;
1313use super :: util:: SectionHeaderCtx ;
1414use std:: borrow:: Cow ;
15- use std:: cmp:: Ordering ;
1615use std:: rc:: Rc ;
1716
1817use super :: DARKMODE_TOGGLE_FILENAME ;
@@ -111,7 +110,7 @@ impl CategoriesPanelCtx {
111110 . filter ( |( _name, node) | !node[ 0 ] . is_internal ( ctx. ctx ) )
112111 . count ( ) ;
113112
114- let mut categories = ctx
113+ let categories = ctx
115114 . ctx
116115 . doc_nodes
117116 . keys ( )
@@ -127,8 +126,6 @@ impl CategoriesPanelCtx {
127126 } )
128127 . collect :: < Vec < _ > > ( ) ;
129128
130- categories. sort_by ( |a, b| a. name . cmp ( & b. name ) ) ;
131-
132129 Some ( CategoriesPanelCtx {
133130 categories,
134131 all_symbols_href : ctx. ctx . resolve_path (
@@ -241,6 +238,7 @@ impl IndexCtx {
241238 & render_ctx,
242239 short_path,
243240 !short_path. is_main ,
241+ false ,
244242 )
245243 } ) ;
246244
@@ -262,7 +260,7 @@ impl IndexCtx {
262260
263261 let overview = match ctx. file_mode {
264262 FileMode :: Dts if short_path. is_none ( ) => {
265- let mut sections = ctx
263+ let sections = ctx
266264 . doc_nodes
267265 . iter ( )
268266 . map ( |( short_path, nodes) | {
@@ -299,13 +297,6 @@ impl IndexCtx {
299297 } )
300298 . collect :: < Vec < _ > > ( ) ;
301299
302- sections. sort_by ( |a, b| match ( & a. header , & b. header ) {
303- ( Some ( x) , Some ( y) ) => x. title . cmp ( & y. title ) ,
304- ( None , Some ( _) ) => Ordering :: Less ,
305- ( Some ( _) , None ) => Ordering :: Greater ,
306- ( None , None ) => Ordering :: Equal ,
307- } ) ;
308-
309300 Some ( SymbolContentCtx {
310301 id : util:: Id :: empty ( ) ,
311302 sections,
0 commit comments