File tree 1 file changed +4
-4
lines changed
src/components/CategoryList
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
* This source code is licensed under the license found in the LICENSE file in
6
6
* the root directory of this source tree.
7
7
*/
8
+ import styles from 'components/CategoryList/CategoryList.scss' ;
9
+ import { CurrentApp } from 'context/currentApp' ;
10
+ import generatePath from 'lib/generatePath' ;
8
11
import PropTypes from 'lib/PropTypes' ;
9
12
import React from 'react' ;
10
- import styles from 'components/CategoryList/CategoryList.scss' ;
11
13
import { Link } from 'react-router-dom' ;
12
- import generatePath from 'lib/generatePath' ;
13
- import { CurrentApp } from 'context/currentApp' ;
14
14
15
15
export default class CategoryList extends React . Component {
16
16
static contextType = CurrentApp ;
@@ -137,7 +137,7 @@ export default class CategoryList extends React.Component {
137
137
) }
138
138
</ div >
139
139
{ this . state . openClasses . includes ( id ) &&
140
- c . filters . map ( ( filterData , index ) => {
140
+ c . filters . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) . map ( ( filterData , index ) => {
141
141
const { name, filter } = filterData ;
142
142
const url = `${ this . props . linkPrefix } ${ c . name } ?filters=${ encodeURIComponent (
143
143
filter
You can’t perform that action at this time.
0 commit comments