Answer the question
In order to leave comments, you need to log in
How to sort output of products by property?
Hello. The question is.
I display product offers on the page. Each sentence has a size
property.
Now the sentences are displayed in order, but with sizes it turns out ugly. Like this:
44
42
46
43
I would like the sentences to be displayed from smaller to larger.
42
43
44
46
Question. How to do it? Something is not smart enough to think out))
the conclusion is the most common
<? foreach($arItem["OFFERS"] as $key => $itemSku): ?>
// тут уже сами предложения
<? endforeach; ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question