How to sort items in wordpress?

Good afternoon. I'm trying to sort the goods(by any criteria, within the code, without sidebar) in my code there is a line that has never worked with short codes. Well, it seems clear, outputs my content aydishnik, in this case "10".(one of the categories). Whether it is possible to sort your products without the help of WooCommerce?(For almost all sources say only used)
<div class="tabs__content active">
 <?php echo do_shortcode being('[productlist type="slab" cat="10"]'); ?>
 </div>

P. S Installed the plugin WP-commerce recall and Recall , in the documentation, anything useful did not see
July 2nd 19 at 18:24
1 answer
July 2nd 19 at 18:26
link to description of this shortcode https://codeseller.ru/api-rcl/productlist/
it allows you to sort in several ways:
the attribute orderby - specifies the sort option.

Possible parameters:
ID - sort by product id
title - sort by title product
date - creation date of the item (default)
rand - random sorting (increased load on DB)

for example: [productlist type='slab' cat='10' orderby='title']
Thank you for help. But I have a question : I used "title". I have the goods iPhones, from 4 to 7. And it turns out that it displays first iPhone 7+ , 7 , then 6+, 6, etc. whether it is Possible to change the value? to put on the "ascending" - Hailie61 commented on July 2nd 19 at 18:29
All , figured out, added order="ASC". It turned out sort by name+ascending order. Thanks again - Hailie61 commented on July 2nd 19 at 18:32
you also gave a link to the documentation, there is another argument, order is the sorting order of the items. Possible values are ASC/DESC - ascending or descending. - Velva.Rogahn commented on July 2nd 19 at 18:35

Find more questions by tags WordPress