Last modified: 2011-12-15 12:46:14 UTC
In case one would like to manipulate the sort order of the main result column one has just to define e.g. |order=asc or |order=desc In case one would like to manipulate the sort order of a column containing a property one has just to define |sort=propertyname and order |order=optionname It is not possible to combine this, since there is no option to define the main result column with the parameter |sort= As soon as a property is involved it is not possible to manipulate the sort order of the main result column. It would be a nice feature though
Quickly hacked something together. Seems to work. Can you verity? r106220
(This uses the empty value thing you mailed me as syntax, ie sort=,prop or sort=prop,)
The syntax is nice since it is minimalistic. Your hack does not work since it ignores the second value provided with parameter sort. sort=,prop sorts by the main result column and ignores the prop and sort=prop, sorts by the prop and ignores the main result column
Err, you do need to provide matching order conditions. If you are sorting on 2 things, it needs 2 values.
That is what I did, e.g. sort=,prop and order=desc,asc I will try tomorrow again to make sure. My server is down right now.
I tested a bit and cleaned up the code, which really was a mess (r106252). Seems to work just fine to me. Also found this was actually already possible, by specifying an order argument to much. sort=Modification date order=ASC, DESC results in Modification date=ASC Page=DESC Now you have two ways of doing it :)
Heiya, great and many kudos to you! I think, hopefully I am not wrong, there is one advantage with the new method: The method that already existed does not let you define that the main result column should be sorted first. This is different now.