We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a311a27 commit d59d544Copy full SHA for d59d544
packages/site/views/_data/materialIcons.js
@@ -21,7 +21,26 @@ const iconsByCategory = categoryOrder
21
.map((category) => {
22
const categoryIcons = icons.filter((icon) => icon.category === category);
23
24
- categoryIcons.sort((a, b) => a.name.localeCompare(b.name));
+ if (category === 'Stepper') {
25
+ const stepperOrder = [
26
+ 'ListZero',
27
+ 'ListOne',
28
+ 'ListTwo',
29
+ 'ListThree',
30
+ 'ListFour',
31
+ 'ListFive',
32
+ 'ListSix',
33
+ 'ListSeven',
34
+ 'ListEight',
35
+ 'ListNine',
36
+ ];
37
+
38
+ categoryIcons.sort((a, b) => {
39
+ return stepperOrder.indexOf(a.name) - stepperOrder.indexOf(b.name);
40
+ });
41
+ } else {
42
+ categoryIcons.sort((a, b) => a.name.localeCompare(b.name));
43
+ }
44
45
return {
46
category,
0 commit comments