Sorting QML dictionary by key
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
In case anyone needs this in the future:
https://stackoverflow.com/questions/1069666/sorting-object-property-by-…
In reply to In case anyone needs this in… by mrproxxxy1
Well done!
By the way, the StackOverflow website is excellent for getting answers to these sort of questions.
https://stackoverflow.com/
[Edit] Ha! I should've read your whole message and not just the code. Oops!