It is true. I have to change small things here. Thought about passing the name of the entry to be used as a name for sorting as a property, so it could be defined in a QML context instead of checking the type of the object. 

Or write a virtual hook, but that's more heavy.