Skip to content

Commit

Permalink
status: sort routers
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed May 10, 2024
1 parent c0f77b5 commit e6597a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions framework/ndn-testbed-status/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ export default defineComponent({
// Get router list
this.routers = JSON.parse(await this.cat(ROUTERS_JSON));
// Sort routers by name
this.routers = Object.fromEntries(
Object.entries(this.routers).sort(([a], [b]) => a.localeCompare(b))
);
// Get each router's status
for (const [name, router] of Object.entries(this.routers)) {
this.refreshRouter(router);
Expand Down

0 comments on commit e6597a2

Please sign in to comment.