hi,
How could i sort data in a multi-dim array?

for example:

$data = array(
    array("Job 3","House Party","Done"),
    array("Job 1","Days End","Done"),
    array("Job 5","Light Wave House","Done"),
    array("Job 2","The Amazon","Not Done"),
    array("Job 4","Fear","Not Done")
);

I want to sort that array via the first,second or third key (Job ID,Job
Title,Job Status)
basically what i need to end up doing is having a table where i can click on
the header colums and sort ascending/descending based on the heading i
clicked

very much like SQL's ORDER BY, which ive been using so far, but now ive come
into a situation where the data cant be fetched from a DB.

Thanks in advance




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to