From 0a821490faca1ec044a5e1c08eb0fdfa67019dcb Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Sat, 4 Aug 2018 16:59:16 +1000 Subject: [PATCH] feat: sort tags in text/plain version of /dashboard --- lib/pact_broker/api/decorators/dashboard_text_decorator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pact_broker/api/decorators/dashboard_text_decorator.rb b/lib/pact_broker/api/decorators/dashboard_text_decorator.rb index 0e9b9c823..41ba67c29 100644 --- a/lib/pact_broker/api/decorators/dashboard_text_decorator.rb +++ b/lib/pact_broker/api/decorators/dashboard_text_decorator.rb @@ -37,10 +37,10 @@ def index_item_object(index_item) Line.new( index_item.consumer_name, index_item.consumer_version_number, - index_item.tag_names.join(", "), + index_item.tag_names.sort.join(", "), index_item.provider_name, index_item.provider_version_number, - index_item.latest_verification_latest_tags.collect(&:name).join(", "), + index_item.latest_verification_latest_tags.collect(&:name).sort.join(", "), index_item.verification_status.to_s ) end