Jump to content

Help sorting array


TheBiff

Recommended Posts

I need help sorting an array.  Here is an example of what it looks like:

 

$data[w-99-893] = array('text',array('a'=>'12','b'=>'12'),'M');

$data[w-68-e02] = array('text',array('a'=>'16','b'=>'14'),'M');

$data[w-95-102] = array('text',array('a'=>'10','b'=>'11'),'M');

 

I need to sort by that first key (w-99-893,w-68-e02,w-95-102). All of the standard php functions don't seem to do it.  I keep getting 1 as an output. 

 

Any ideas?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/129650-help-sorting-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.