Jump to content

Php:Problem in sorting of elements?


esandra

Recommended Posts

Hi. I am having problems arranging some elements.

This is what happens when we do an 'order by field_name asc':

 

0302MZ2010

0401ML2010

0505ML2010

0610ML2009

0615MZ2010

 

This is what I want to happen:

 

0302MZ2010

0401ML2010

0505ML2010

0615MZ2010

0610ML2009

 

Arrange the year in desc order and the rest should be in asc order.

Now, I'm very confused and I don't know how to do this.

Thanks a lot and have a nice day.

 

Link to comment
https://forums.phpfreaks.com/topic/216445-phpproblem-in-sorting-of-elements/
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.