Sort alert rules table by rules name a-z
parent
2f2021e9ae
commit
38b278a18c
|
@ -1,5 +1,6 @@
|
||||||
import React, {PropTypes} from 'react'
|
import React, {PropTypes} from 'react'
|
||||||
import {Link} from 'react-router'
|
import {Link} from 'react-router'
|
||||||
|
import _ from 'lodash'
|
||||||
|
|
||||||
import {KAPACITOR_RULES_TABLE} from 'src/kapacitor/constants/tableSizing'
|
import {KAPACITOR_RULES_TABLE} from 'src/kapacitor/constants/tableSizing'
|
||||||
const {
|
const {
|
||||||
|
@ -31,7 +32,7 @@ const KapacitorRulesTable = ({
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{rules.map(rule => {
|
{_.sortBy(rules, r => r.name.toLowerCase()).map(rule => {
|
||||||
return (
|
return (
|
||||||
<RuleRow
|
<RuleRow
|
||||||
key={rule.id}
|
key={rule.id}
|
||||||
|
|
Loading…
Reference in New Issue