Difference between revisions of "DPL talk:Manual - DPL parameters: Controlling output order"

From FollowTheScore
Jump to: navigation, search
(Sorting by included text)
 
Line 2: Line 2:
  
 
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. – [[User:Jonathan Kovaciny|Jonathan Kovaciny]] 20:08, 19 December 2007 (CET)
 
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. – [[User:Jonathan Kovaciny|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. - [[User:Gero|Gero]] 09:15, 22 December 2007 (CET)

Revision as of 10:15, 22 December 2007

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)