We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24629
    • 370 Posts
    Hi all,

    i've got a tv 'AgendaDatum' which is a date. i'm trying to sort the collection on this var with getResources.
    it seemsto work BUT i cantchange the directioon.
    this is what i have now
    [[!getResources? 
    &where=`{"template:=":5}` 
    &tpl=`detailAgendaBlokjeTpl` 
    &includeTVs=`1` 
    &processTVs=`1` 
    &sortbyTV=`AgendaDatum` 
    &sortdir=`DESC` 
    &sortby=``
    &sortbyTVType =`datetime`]]
    
    


    but the 'sortdir' doesn't seem to work. The order is the same no matter what i change it into ASC or DESC.
    any ideas?

    Rdg
      • 36926
      • 701 Posts
      I wonder if the empty &sortby is causing problems, what happens if you remove that?
        • 24629
        • 370 Posts
        Hoi ,
        nope that makes no difference.

        rdg
          • 36926
          • 701 Posts
          I think you need to use &sortdirTV instead of &sortdir
            • 24629
            • 370 Posts
            Hi,

            Yes tnx that was it. i can't believe i missed that in de documentation