From 50fd9c7a9d6d51481418693924f9d92766680c10 Mon Sep 17 00:00:00 2001 From: ge Date: Sun, 20 Oct 2024 09:00:19 +0300 Subject: [PATCH] fix duplicates in labels list --- src/em.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/em.v b/src/em.v index 7175d3a..d500eb5 100644 --- a/src/em.v +++ b/src/em.v @@ -19,7 +19,7 @@ fn (em EntryManager) labels() []string { for _, val in em.config.entries { labels << val.labels } - return arrays.uniq(labels) + return arrays.uniq(labels.sorted()) } fn (em EntryManager) by_labels(labels []string) []Entry {