We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12028
    • 152 Posts
    I'm trying to sort a list by a date with getresources 1.4.2 in Revo 2.2.
    The date are in a tv, and the input type are... date. The output type are also set as a date.
    The snippet call are:
    [[getResources:default=`Nothing found`? 
    	&parents=`4,11,19,22,1429,1200,38` 
    	&tpl=`chk-tpl-upcoming-course-list` 
    	&where=`{"template:=":49}`
    	&showHidden=`1` 
    	&includeTVs=`1` 
    	&processTVs =`1` 
    	&tvFilters=`tv-course-start==%`
    	&limit=`10` 
    	&tvPrefix =``
    	&sortbyTV=`tv-course-start`
    	&sortdirTV=`ASC`
    	&sortbyTVType=`datetime`
    	&sortby=``
    	&includeContent=`0`
    	&cacheResults=`1` 
    	&cacheTime=`1440`
    	&debug=`1` 
    ]]

    - but the output are not sorted!

    I hope that there are somebody who can see the error in the above!

    I had checked the database, and it seems to me, that the date are correct, but are of the type of string, instead of unixtime - but I can't figure out if that is the problem?

    (I could not find a specific forum for getresources 1.4.2, and if I have missed it, I am sorry and hope that someone can move this to the right place!)
      - A small step for mankind, so why not take two...

      Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!