robbiez
01-17-2012, 03:42 PM
Hi
I have a few lines of code that returns a number of items. I need to sort the order of these items in the numeric order of one of the array values.
This is the current code:
foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['ARR_F']):
$this->_foreach['frchFrameList']['iteration']++;
and I want to sort the results by the value of
$this->_tpl_vars['ARR_F']['depth_mm']
I have tried using sort() but just get syntax errors.
Thanks in advance for any assistance.
Thanks
Rob
I have a few lines of code that returns a number of items. I need to sort the order of these items in the numeric order of one of the array values.
This is the current code:
foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['ARR_F']):
$this->_foreach['frchFrameList']['iteration']++;
and I want to sort the results by the value of
$this->_tpl_vars['ARR_F']['depth_mm']
I have tried using sort() but just get syntax errors.
Thanks in advance for any assistance.
Thanks
Rob