470,849 Members | 1,033 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

array_multisort syntax

Hi,

I have a table loaded in an array like so :

$table[0][ID] $table[0][text] $table[0][text2]
$table[1][ID] $table[1][text] $table[1][text2]
$table[2][ID] $table[2][text] $table[2][text2]
......

now I want to sort this table using the ID column.

I can't seem to find the exact syntax for this.
Any suggestions ??
thx

Ward

Jul 16 '05 #1
1 2539
Ward Germonpé wrote:
Hi,

I have a table loaded in an array like so :

$table[0][ID] $table[0][text] $table[0][text2]
$table[1][ID] $table[1][text] $table[1][text2]
$table[2][ID] $table[2][text] $table[2][text2]
.....

now I want to sort this table using the ID column.
Hi,

Forgive me if I'm wrong, but I think you just want to do:

sort($table);

I think will sort by the first element if you have an array of arrays
such as this.

Suck it and see.

MK.
I can't seem to find the exact syntax for this.
Any suggestions ??
thx

Ward


--
MeerKat

Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by michael nieuwenhuizen | last post: by
5 posts views Thread by Frostillicus | last post: by
699 posts views Thread by mike420 | last post: by
22 posts views Thread by Tuang | last post: by
14 posts views Thread by Sandy Norton | last post: by
19 posts views Thread by Nicolas Fleury | last post: by
3 posts views Thread by Manuel | last post: by
reply views Thread by R | last post: by
3 posts views Thread by Schraalhans Keukenmeester | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.