File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public static class NavigationViewHelper
3939
4040 private static IEnumerable < MUXC . NavigationViewItem > GenerateSampleNavItems ( IEnumerable < ToolkitFrontMatter > sampleMetadata )
4141 {
42- foreach ( var metadata in sampleMetadata )
42+ foreach ( var metadata in sampleMetadata . OrderBy ( meta => meta . Title ) )
4343 {
4444 yield return new MUXC . NavigationViewItem
4545 {
@@ -52,7 +52,8 @@ public static class NavigationViewHelper
5252
5353 private static IEnumerable < GroupNavigationItemData > GenerateSubcategoryNavItems ( IEnumerable < ToolkitFrontMatter > sampleMetadata )
5454 {
55- var samplesBySubcategory = sampleMetadata . GroupBy ( x => x . Subcategory ) ;
55+ var samplesBySubcategory = sampleMetadata . GroupBy ( x => x . Subcategory )
56+ . OrderBy ( g => g . Key . ToString ( ) ) ;
5657
5758 foreach ( var subcategoryGroup in samplesBySubcategory )
5859 {
@@ -68,7 +69,8 @@ private static IEnumerable<GroupNavigationItemData> GenerateSubcategoryNavItems(
6869
6970 private static IEnumerable < GroupNavigationItemData > GenerateCategoryNavItems ( IEnumerable < ToolkitFrontMatter > sampleMetadata )
7071 {
71- var samplesByCategory = sampleMetadata . GroupBy ( x => x . Category ) ;
72+ var samplesByCategory = sampleMetadata . GroupBy ( x => x . Category )
73+ . OrderBy ( g => g . Key . ToString ( ) ) ;
7274
7375 foreach ( var categoryGroup in samplesByCategory )
7476 {
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public enum ToolkitSampleSubcategory : byte
5353 Markup ,
5454
5555 /// <summary>
56- /// Samples that focus on helping with mathmatical operations.
56+ /// Samples that focus on helping with mathematical operations.
5757 /// </summary>
5858 Math ,
5959
You can’t perform that action at this time.
0 commit comments