All TV values are stored as strings. (Because all TVs use the same database column.)
So it looks to me, like the data is sorted as a string and not as a number.
There exists some code in pdoResources to cast the value to the correct type before sorting.
Either change the “Input Type” of your TV to “Number”.
Or use the properties sortbyTV, sortdirTV and sortbyTVType for the sorting.
They are mentioned in the documentation for getResources.
As pdoResources was a replacement for getResources, most of the getResources functionality was implemented as well.
The problem with sortbyTV in this case at hand is, that it only allows the sorting by one TV. You can’t sort this way by multiple TVs.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.