glance icon indicating copy to clipboard operation
glance copied to clipboard

docker-containers is always sorted alphabetically

Open mrkaryo opened this issue 6 months ago • 2 comments

Description

When using type: docker-containers with explicit entries, i.e. hide-by-default: true and then a couple of entries with hide: false, the entries are sorted alphabetically. It would be great if it would preserve the order that we declare them in the YAML, similar to how type: monitor works

mrkaryo avatar May 17 '25 14:05 mrkaryo

This might also be a feature request, not sure which would apply best.

mrkaryo avatar May 17 '25 14:05 mrkaryo

I think this is more of a feature request since it's currently working as intended. While using the order in the YAML would work, you'd need another way to order the ones defined by labels, and then what happens if you mix and match. Something like glance.order: 1 as the label or order: 1 which would put that container first, 2 for second, etc, would work for both.

svilenmarkov avatar May 24 '25 01:05 svilenmarkov