Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4156

Re: multi-dimensional array sorting by index (like a table)

From Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de>
Newsgroups comp.lang.php
Subject Re: multi-dimensional array sorting by index (like a table)
Date 2011-12-28 01:03 +0100
Organization albasani.net
Message-ID <jddmcj$7bu$1@news.albasani.net> (permalink)
References <ndakf758sqreqh354sjndhrbdii604ddgj@4ax.com>

Show all headers | View raw


Michael Joel schrieb:
> I am guessing there is no php function to handle sorting an array as
> you could a database? Meaning I want a multi-dimensional array sorted
> by index 0, and "sub sorting" (whatever you call it) using index 4?

Have a look at http://de3.php.net/array_multisort.

Greetings,
Thomas

-- 
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

multi-dimensional array sorting by index (like a table) Michael Joel <no@please.com> - 2011-12-27 15:25 -0500
  Re: multi-dimensional array sorting by index (like a table) The Natural Philosopher <tnp@invalid.invalid> - 2011-12-27 21:07 +0000
  Re: multi-dimensional array sorting by index (like a table) Denis McMahon <denismfmcmahon@gmail.com> - 2011-12-27 23:16 +0000
  Re: multi-dimensional array sorting by index (like a table) Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2011-12-28 01:03 +0100
    Re: multi-dimensional array sorting by index (like a table) Michael Joel <no@please.com> - 2011-12-27 19:24 -0500
      Re: multi-dimensional array sorting by index (like a table) Denis McMahon <denismfmcmahon@gmail.com> - 2011-12-28 00:39 +0000
        Re: multi-dimensional array sorting by index (like a table) Michael Joel <no@please.com> - 2011-12-27 20:12 -0500
          Re: multi-dimensional array sorting by index (like a table) Michael Joel <no@please.com> - 2011-12-27 22:50 -0500

csiph-web