title: SMARTY foreach array (sort order)
body: <p>I run Prestashop 1.5 which uses SMARTY. When Quantity discounts are shown, they do not show in logical order. </p>
  
  <p>I would like to arrange them in this order:</p>
  
  <p>first 1 unit then<br>
  2 units then<br>
  3 units then<br>
  4 units then<br>
  5 units<br></p>
  
  <p>Instead of in the order i added them, which is the case now. Can anoyone help?</p>
  
  <p>Br,<br>
  Tobias<br></p>
  
  <p>I have tried with |@array_reverse but it doens't seem to work...</p>
  
  <p>CURRENT CODE:<br>
  ................................<br>
  {if $quantity_discounts}<br>
  {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'}</p>
  
  <p>xxxxx</p>
  
  <p>{/foreach}<br>
  {/if}</p>