fix duplicates in labels list
This commit is contained in:
parent
c62213c8ff
commit
50fd9c7a9d
2
src/em.v
2
src/em.v
@ -19,7 +19,7 @@ fn (em EntryManager) labels() []string {
|
|||||||
for _, val in em.config.entries {
|
for _, val in em.config.entries {
|
||||||
labels << val.labels
|
labels << val.labels
|
||||||
}
|
}
|
||||||
return arrays.uniq(labels)
|
return arrays.uniq(labels.sorted())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (em EntryManager) by_labels(labels []string) []Entry {
|
fn (em EntryManager) by_labels(labels []string) []Entry {
|
||||||
|
Loading…
Reference in New Issue
Block a user