X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=northbound%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fovsdb%2Fnorthbound%2FNodeResource.java;fp=northbound%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fovsdb%2Fnorthbound%2FNodeResource.java;h=034ddff6becd9eb4267e574a7a17414badae528b;hb=095ebe39ce6dddcddc5256137395a2233f2f751f;hp=a4fc913c0f011167cab3a2c5aa653cbdf5388c2e;hpb=0ff9ff2fc3605c9c7dc556d8e92309a422de34f8;p=ovsdb.git diff --git a/northbound/src/main/java/org/opendaylight/ovsdb/northbound/NodeResource.java b/northbound/src/main/java/org/opendaylight/ovsdb/northbound/NodeResource.java index a4fc913c0..034ddff6b 100644 --- a/northbound/src/main/java/org/opendaylight/ovsdb/northbound/NodeResource.java +++ b/northbound/src/main/java/org/opendaylight/ovsdb/northbound/NodeResource.java @@ -2,6 +2,7 @@ package org.opendaylight.ovsdb.northbound; import com.fasterxml.jackson.databind.SerializationFeature; import java.io.InputStream; +import java.util.Collections; import java.util.List; import javax.ws.rs.Consumes; @@ -99,6 +100,7 @@ public class NodeResource { for (Node node : nodes) { nodeIds.add(node.getId().getValue()); } + Collections.sort(nodeIds); String response = objectMapper.writeValueAsString(nodeIds); return Response.status(Response.Status.OK)