Last modified: 2012-11-07 07:07:07 UTC
Hello, I just updated to 1.7b1, and most of my queries are not sorted anymore. You'll find an example on http://www.delibris.fr/Liste_des_auteurs, it's a simple query: {{#ask:[[-Auteur::+]] |format=category |limit=999999 }} I tried adding "|sort=Auteur", but it still does not work. I tried with other formats too, without success. In previous SMW version, it was using the default MW sort system. Cheers, -- Pierre Réveillon
What did you update from? There is definitely no problem with sorting regular properties, I just tested that. However, you are sorting using an inverse property. I sort of doubt this ever worked (but you are saying it did - are you _very_ sure?) and am tempted to either mark this as invalid wontfix, or turn it into an enhancement request.
I updated from 1.6.1 (but I also updated MW from 1.17 to 1.18 the same day). I'm absolutely sure this was working before, and the website editor confirmed that. It was even working for non-existing pages (Like in http://www.delibris.fr/Liste_des_%C3%A9diteurs). I was using inversed properties quite everywhere because the wiki wasn't completely populated, but now I could query on categories. So if I'm the only one complaining on that, you can turn it to enh.
In fact I was wrong, I don't know how to do without inversed properties in this case. I made an install with 1.6.1, you can see it was working: http://old.delibris.fr/Liste_des_auteurs. I updated MW to be sure the bug comes from SMW. Let me know if you can/will fix it, otherwise I'll need to find a different way to do the query, or to stay in 1.6.1. Cheers
I'd be interested in fixing/implementing this bug, but I don't know where to start. Could you point me where in the code is done the sort? Or do you have an idea on which modification made it to stop working in version 1.7? Thanks
I updated to 1.7.0.2, (I was still in b1), and now, it's automatically sorted if I don't provide the "sort" parameter. If I put it, it's not sorted. Can I hope it will stay like that?
Is this issue still relevant for SMW 1.8? As a precautionary measures I will renderer this bug as resolved. Feel free to reopen the bug again if it still applies to SMW 1.8.
This was fixed very recently: the change https://gerrit.wikimedia.org/r/#/c/31279/ corrected this (and other problems). I just tested and it is now possible to use inverse properties in ?printouts and also in sort.