Sort 2D arrayby multiple columns?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • veg_all@yahoo.com

    #1

    Sort 2D arrayby multiple columns?

    is there an easy function/ class for sorting a 2D array multiple
    fields. I would like to specify a primary sort and secondary sort.

  • Chung Leong

    #2
    Re: Sort 2D arrayby multiple columns?


    veg_all@yahoo.c om wrote:[color=blue]
    > is there an easy function/ class for sorting a 2D array multiple
    > fields. I would like to specify a primary sort and secondary sort.[/color]

    What you need is array_multisort (), I believe.

    Comment

    Working...