Skip to content

Commit

Permalink
fix: Sort ui
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed May 17, 2022
1 parent f4b4282 commit b74ee63
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ function App() {
fetch('./status')
.then(response => response.json())
.then(response => {
response.sort((a, b) => {
let fa = a.name.toLowerCase(),
fb = b.name.toLowerCase();
if (fa < fb) {
return -1;
}
if (fa > fb) {
return 1;
}
return 0;
})
setServices(response)
setUpdateInfo("Last updated: "+moment(new Date()).format("LTS"))
})
Expand Down

0 comments on commit b74ee63

Please sign in to comment.