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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.