Like the topic says I want to order values by date. I'm using the code
[[Einspiel_{{{1}}}::{{{2}}}| ]]{{{2}}}
in an template to easily refer a value to a variable. {{{1}}} is the name of my variable and {{{2}}} is the date (dd.mm.yyyy).
As it is possible to give the variable multiple values, I want to get the highest date on another wiki page.
I've tried it with something like this
{{#arraydefine:{{{1}}}_Preisdatum
|{{#ask:[[Kategorie:Aktualisierungen]]
|?Einspiel_{{{1}}}=
|mainlabel=-
|link=none
|sort=Einspiel_{{{1}}}
|order=desc}}
}}
{{#arrayindex:{{{1}}}_Preisdatum|0 }}
but without success. The problem seems to be that the dates are only ordered by the first digit. If I try to get a descending list, the result is:
- 11.07.2014
- 08.07.2014
- 01.01.2015
instead of
- 01.01.2015
- 11.07.2014
- 08.07.2014
I've read that there is a way to order dates with #SORTKEY but I don't know how to include that in my code since my input should be only the newest date. I hope you guys can help me with that. Thanks in advance.