DPL talk:Manual - DPL parameters: Controlling output order
From FollowTheScore
Sorting by included text
Would it be possible to sort the output by text included from the results pages? For example, if I have a list of African countries with their populations, I might want to sort by population. – Jonathan Kovaciny 20:08, 19 December 2007 (CET)
There is no a-priori sort in DPL so far but you can offer the result in a sortable table so that the user only needs to click once to have the result sorted according to his preferences. Maybe a javascript-one-liner could do that after the document has been loaded. Depending on the security restrictions in your wiki the execution of javascript may or may not be possible. - Gero 09:15, 22 December 2007 (CET)
- +1 vote for this feature... the sortable table is a viable work-around in some cases, but if you want the field to be hidden then it is not an option. For example, I'm using this extension to generate a list of users and their job title in a particular team. At the moment the results are sorted alphabetically - I'd like to assign a 'weight' to each user so that the list is sorted by their position in the company hierarchy. -- Dave 09:50, 22 April 2008 (CEST)