02-21-2013 01:14 PM - edited 02-21-2013 01:41 PM
I have a GroupDataModel and want to order on a specific property. The GroupDataModel is filled with objects A. A has an other object called B. And B has a QTime on which I want to order. So normally, if QTime was a property of A, I could do something like
new GroupDataModel(QStringList() << "time");
But now I want to do something like
new GroupDataModel(QStringList() << "b.time");
Is that even possible? I tried to implement the operators < and > in b so that maybe he could order it when I said QStringList() << "b" but that also did not help.
Thanks in advance
02-21-2013 02:04 PM - edited 02-21-2013 02:17 PM
Ok. I almost get your idea. Your data model is as below right?
I think that the sortingKeys can only support for QStringList (http://developer.blackberry.com/cascades/reference
02-21-2013 06:42 PM
Oké, I will have a try on that one! I'll keep this one updated if I can find a better solution.