Tri alphabétique de la page /règles

pull/386/head
Mael 2018-11-23 13:04:21 +00:00
parent e232970c8c
commit 78f7feecc8
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { encodeRuleName } from 'Engine/rules.js'
import Fuse from 'fuse.js'
import { pick } from 'ramda'
import { sortBy, pick } from 'ramda'
import React from 'react'
import Highlighter from 'react-highlight-words'
import { withI18n } from 'react-i18next'
@ -95,7 +95,7 @@ class SearchBar extends React.Component {
/>
{this.props.showDefaultList && !this.state.inputValue && (
<ul>
{rules.map(rule => (
{sortBy(rule => rule.title, rules).map(rule => (
<li key={rule.dottedName}>
<Link
to={