From 8785ca1ed546cf1bcfe2069089a3da3bdd71a898 Mon Sep 17 00:00:00 2001 From: Alex Decker Date: Thu, 22 Aug 2024 17:00:25 -0500 Subject: [PATCH] MF-5759 fix stability of namespace route sorting --- core/generator/java/java.stoneg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/generator/java/java.stoneg.py b/core/generator/java/java.stoneg.py index 544b06896..d8e9dcc2f 100644 --- a/core/generator/java/java.stoneg.py +++ b/core/generator/java/java.stoneg.py @@ -2586,7 +2586,9 @@ def generate_client(self): def generate_namespace(self, namespace): assert isinstance(namespace, ApiNamespace), repr(namespace) - + # We need a stable sort in order to keep the resultant output + # the same across runs. + namespace.routes.sort() j = self.j # add documentation to our packages