How to organize a sort pdoPage?

The past year has solved this problem now can't remember what I did.

The problem:
sorts he
subcategory
100 RUB.
102 RUB.
103 RUB
subcategory
99 RUB
100 RUB.
subcategory
88 RUB
100 RUB.

How to get to the subcategory sorting is not affected?
ie
88 RUB
99 RUB
100 RUB.
102 RUB.
103 RUB

Deduce so
[[!pdoPage?
&limit=`30`
&show hidden=`1`
&tpl=`tovar-catalog`
&templates=`5`
&includeContent=`1`
&includeContent=`1`
&includeTVs=`image-tovar,price-old,price,sale,images,bonus`
 &tplPageWrapper=`@INLINE <div class="pagination"><ul> Pages: [[+prev]] [[+pages]] [[+next]]</ul></div>`
&tplPagePrevEmpty=`@INLINE`
&tplPageNextEmpty=`@INLINE`
[[!Sort]]
 ]]

Spippy sortirovki
$sort = $_GET['sort'];
if($sort == ") {
$output='&sortby=`{"editedon":"DESC"}`;
} else {
 $output = '&sortby=`{"'.$sort.'":"'.$_GET['dir'].'"}`;
}
return $output;
July 9th 19 at 10:19
1 answer
July 9th 19 at 10:21
Solution
Figured out the answer found in the old issues I have tupanul the price had to be the price but not the text

Find more questions by tags MODX