Sort routes for a prefix by next hop address.

This prevents the CLI output being ordered differently for different
invocations.

Change-Id: I182b3c79c466b4e30f0b951666f59db9fdf89aee
diff --git a/cli/src/main/java/org/onosproject/cli/net/RoutesListCommand.java b/cli/src/main/java/org/onosproject/cli/net/RoutesListCommand.java
index 31b7555..b24ee5d 100644
--- a/cli/src/main/java/org/onosproject/cli/net/RoutesListCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/RoutesListCommand.java
@@ -81,7 +81,8 @@
     }
 
     private void print(String format, RouteInfo routeInfo) {
-        routeInfo.allRoutes()
+        routeInfo.allRoutes().stream()
+                .sorted(Comparator.comparing(r -> r.nextHop()))
                 .forEach(r -> print(format, isBestRoute(routeInfo.bestRoute(), r) ? ">" : "",
                         r.prefix(), r.nextHop(), r.route().source()));
     }