The oh-repeater should support configurable sorting when using sourceType: itemsInGroup.
Currently, items are sorted alphabetically by ItemName by default. It would be useful to have an additional option to preserve the original definition order of items.
Thanks! Regarding a related issue, I was just about to give up and look for a JS-based solution when @hr3’s post appeared … immediately I’ve given it a like.
Lets say that it wasn’t easy to find the right way to achieve what one wants…
This is everything the documentation says about fetchMetadata:
Really hard to understand to me
Following your suggestion, I looked for the metadata:
where the “alexa” example is like a ray of light in the darkness.
In the end, this is what I added to the item channels:
And it works for me. Still, I agree with the author of the post: default automate sorting even by position could be an idea. And, ideally, it should be documented.