fix: consistent service order in cockpit

This commit is contained in:
Andre Medeiros 2018-12-20 14:50:13 -05:00 committed by Iuri Matias
parent 33d6e29286
commit 7574e141fa
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ Process.propTypes = {
const Processes = ({processes}) => (
<Row>
{processes.map((process) => <Process key={process.name} process={process} />)}
{processes
.sort((a, b) => a.name < b.name ? 1 : 0)
.map((process) => <Process key={process.name} process={process} />)}
</Row>
);