DPL talk:Manual - DPL parameters: Controlling output order

From FollowTheScore
Revision as of 09:15, 22 December 2007 by Gero (talk | contribs)
Jump to: navigation, search

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)