From 66c4f7453e0975b986bfbfd9d1690fe5ebcc4a61 Mon Sep 17 00:00:00 2001
From: Justin Scott <justin.a.scott@intel.com>
Date: Mon, 14 Aug 2017 23:43:14 -0700
Subject: [PATCH] feat(tiller): sort manifests alphabetically if they are same
 kind

Updates Tiller manifest sorting so that manifests of the same kind are
then sorted alphabetically.

Closes #1696
---
 pkg/tiller/kind_sorter.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pkg/tiller/kind_sorter.go b/pkg/tiller/kind_sorter.go
index fbeb75c35..9b4780771 100644
--- a/pkg/tiller/kind_sorter.go
+++ b/pkg/tiller/kind_sorter.go
@@ -123,5 +123,9 @@ func (k *kindSorter) Less(i, j int) bool {
 	if !ok {
 		return true
 	}
+	if first == second {
+		// same kind so sub sort alphanumeric
+		return a.name < b.name
+	}
 	return first < second
 }
-- 
GitLab