By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,348 Members | 1,397 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,348 IT Pros & Developers. It's quick & easy.

array_multisort syntax

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.