fix duplicates in labels list

This commit is contained in:
ge 2024-10-20 09:00:19 +03:00
parent c62213c8ff
commit 50fd9c7a9d

View File

@ -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 {