From 30cf0025741af61757e21242b2711b519756918f Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 1 Nov 2015 22:45:10 +0100 Subject: [PATCH] Sort IDSet.List() --- backend/idset.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/idset.go b/backend/idset.go index b34a69afb..de93f8754 100644 --- a/backend/idset.go +++ b/backend/idset.go @@ -1,5 +1,7 @@ package backend +import "sort" + // IDSet is a set of IDs. type IDSet map[ID]struct{} @@ -36,6 +38,8 @@ func (s IDSet) List() IDs { list = append(list, id) } + sort.Sort(list) + return list }