J
J
Jupiter Max2020-05-13 09:46:14
1C-Bitrix
Jupiter Max, 2020-05-13 09:46:14

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

1 answer(s)
R
Rsa97, 2020-05-13
@Rsa97

usort()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question