File tree 2 files changed +6
-4
lines changed
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
39
39
40
40
private static IEnumerable < MUXC . NavigationViewItem > GenerateSampleNavItems ( IEnumerable < ToolkitFrontMatter > sampleMetadata )
41
41
{
42
- foreach ( var metadata in sampleMetadata )
42
+ foreach ( var metadata in sampleMetadata . OrderBy ( meta => meta . Title ) )
43
43
{
44
44
yield return new MUXC . NavigationViewItem
45
45
{
@@ -52,7 +52,8 @@ public static class NavigationViewHelper
52
52
53
53
private static IEnumerable < GroupNavigationItemData > GenerateSubcategoryNavItems ( IEnumerable < ToolkitFrontMatter > sampleMetadata )
54
54
{
55
- var samplesBySubcategory = sampleMetadata . GroupBy ( x => x . Subcategory ) ;
55
+ var samplesBySubcategory = sampleMetadata . GroupBy ( x => x . Subcategory )
56
+ . OrderBy ( g => g . Key . ToString ( ) ) ;
56
57
57
58
foreach ( var subcategoryGroup in samplesBySubcategory )
58
59
{
@@ -68,7 +69,8 @@ private static IEnumerable<GroupNavigationItemData> GenerateSubcategoryNavItems(
68
69
69
70
private static IEnumerable < GroupNavigationItemData > GenerateCategoryNavItems ( IEnumerable < ToolkitFrontMatter > sampleMetadata )
70
71
{
71
- var samplesByCategory = sampleMetadata . GroupBy ( x => x . Category ) ;
72
+ var samplesByCategory = sampleMetadata . GroupBy ( x => x . Category )
73
+ . OrderBy ( g => g . Key . ToString ( ) ) ;
72
74
73
75
foreach ( var categoryGroup in samplesByCategory )
74
76
{
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public enum ToolkitSampleSubcategory : byte
53
53
Markup ,
54
54
55
55
/// <summary>
56
- /// Samples that focus on helping with mathmatical operations.
56
+ /// Samples that focus on helping with mathematical operations.
57
57
/// </summary>
58
58
Math ,
59
59
You can’t perform that action at this time.
0 commit comments