Sort definitions by priority before returning them.
Thanks for taking a look again ;=)
I would propose to just stable_sort the vector, that should always yield the same result.
And I think the sorting is the only issue, the other problem I got did only occur with non-QRC syntax files and was introduced by myself ;=)
Yeah, I just missed to recheck the sorting logic. Before the change we just needed the best match so the partial sort was completely sufficient. Now we need a complete sorted vector, so stable sort is the way to go ;)