Skip to content

Commit

Permalink
Sort added router list before set the 'routers' field of the RouterCh…
Browse files Browse the repository at this point in the history
…ain (#3969)
  • Loading branch information
tswstarplanet authored and kun-song committed May 7, 2019
1 parent d11f204 commit 392fcbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void addRouters(List<Router> routers) {
List<Router> newRouters = new ArrayList<>();
newRouters.addAll(builtinRouters);
newRouters.addAll(routers);
CollectionUtils.sort(routers);
CollectionUtils.sort(newRouters);
this.routers = newRouters;
}

Expand Down

0 comments on commit 392fcbf

Please sign in to comment.