l original -
> De: "Andrey Kozhevnikov"
> À: devel@lists.sailfishos.org
> Envoyé: Dimanche 17 Novembre 2013 14:05:39
> Objet: Re: [SailfishDevel] ListModel sorting in QML
>
> afaik the use of JSONListModel not intended the sorting functions.
> you need to make own
Ok, thanks
I will create my own model with sorting capabilities
Antoine
- Mail original -
De: "Andrey Kozhevnikov"
À: devel@lists.sailfishos.org
Envoyé: Dimanche 17 Novembre 2013 14:05:39
Objet: Re: [SailfishDevel] ListModel sorting in QML
afaik the use of JSONListModel no
afaik the use of JSONListModel not intended the sorting functions.
you need to make own model and sort json data before pushing it to model.
On 17.11.2013 18:39, Tigre-Bleu wrote:
Hi,
I have a ListView which loads a model from JSON with JSONListModel. The model
contains items and category ids,
Hi,
I have a ListView which loads a model from JSON with JSONListModel. The model
contains items and category ids, but is not sorted by category.
What I wand to do is to display the items sorted by categories in the ListView.
I have put a section.property in the ListView but it is working only