Sort alert rules table by rules name a-z

pull/1717/head
Alex P 2017-07-12 11:49:09 -07:00
parent 2f2021e9ae
commit 38b278a18c
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import React, {PropTypes} from 'react'
import {Link} from 'react-router'
import _ from 'lodash'
import {KAPACITOR_RULES_TABLE} from 'src/kapacitor/constants/tableSizing'
const {
@ -31,7 +32,7 @@ const KapacitorRulesTable = ({
</tr>
</thead>
<tbody>
{rules.map(rule => {
{_.sortBy(rules, r => r.name.toLowerCase()).map(rule => {
return (
<RuleRow
key={rule.id}