Re: [SailfishDevel] ListModel sorting in QML

2013-11-17 Thread Artem Marchenko
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

Re: [SailfishDevel] ListModel sorting in QML

2013-11-17 Thread Tigre-Bleu
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

Re: [SailfishDevel] ListModel sorting in QML

2013-11-17 Thread Andrey Kozhevnikov
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,

[SailfishDevel] ListModel sorting in QML

2013-11-17 Thread Tigre-Bleu
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