B
B
BeEasyO2016-12-28 16:51:11
PHP
BeEasyO, 2016-12-28 16:51:11

How to sort products by parameter?

The documentation has a sort by property.
And how to sort the goods (for me) by the parameter that is specified in $arResult["some"]["some"]["this_parametr"]?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Gritsuk, 2017-01-06
@winer

It is difficult to imagine what parameter we are talking about.
For sorting, you can use everything that is described for the arOrder parameter of the GetList function .
But here still there is a question where sorting is required? If in some component: news.list, catalo.section, etc. then you need to look at their description in the documentation , and set the sorting options from the "gear", or manually in the code.

F
Felix, 2017-02-20
@infusion_framed

$arSort = array('ASC'=>'PROPERTY_property_code')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question