Sorting QML dictionary by key

• Apr 16, 2022 - 03:08

Apologies for asking here, but googling hasn't given me much joy, as it seems to be a mashup of javascript and dense QML documentation that doesn't seem to work quite right.

I have a dictionary that I've defined as "{}" in my QML code.
I want to iterate over the keys in this dictionary in order, either via a default sort or via a function that I define to sort by.

Is this something you can do, if so, how ? If there's documentation, I'd be happy to be pointed to that as well.

thanks,
John


Comments

Do you still have an unanswered question? Please log in first to post your question.