Link to home
Start Free TrialLog in
Avatar of mhoggatt1
mhoggatt1

asked on

Sorting Arrays

What are the commands for sorting arrays ?
Thanks,
Michael
SOLUTION
Avatar of Tomeeboy
Tomeeboy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
They are:
<A HREF="http://www.php.net/manual/en/function.array-multisort.php">array_multisort</A>&nbsp;--&nbsp;Sort multiple or multi-dimensional arrays</DT><DT>
<A HREF="http://www.php.net/manual/en/function.arsort.php">arsort</A>&nbsp;--&nbsp;Sort an array in reverse order and maintain index association
<A HREF="http://www.php.net/manual/en/function.asort.php">asort</A>&nbsp;--&nbsp;Sort an array and maintain index association</DT><DT>
<A HREF="http://www.php.net/manual/en/function.krsort.php">krsort</A>&nbsp;--&nbsp;Sort an array by key in reverse order</DT><DT>
<A HREF="http://www.php.net/manual/en/function.ksort.php">ksort</A>&nbsp;--&nbsp;Sort an array by key</DT><DT>
<A HREF="http://www.php.net/manual/en/function.natcasesort.php">natcasesort</A>&nbsp;--&nbsp;Sort an array using a case insensitive "natural order" algorithm
<A HREF="http://www.php.net/manual/en/function.natsort.php">natsort</A>&nbsp;--&nbsp;Sort an array using a "natural order" algorithm
<A HREF="http://www.php.net/manual/en/function.rsort.php">rsort</A>&nbsp;--&nbsp;Sort an array in reverse order</DT><DT>
<A HREF="http://www.php.net/manual/en/function.sort.php">sort</A>&nbsp;--&nbsp;Sort an array</DT><DT>
<A HREF="http://www.php.net/manual/en/function.uasort.php">uasort</A>&nbsp;--&nbsp;Sort an array with a user-defined comparison function andmaintain index association
<A HREF="http://www.php.net/manual/en/function.uksort.php">uksort</A>&nbsp;--&nbsp;Sort an array by keys using a user-defined comparison function
<A HREF="http://www.php.net/manual/en/function.usort.php">usort</A>&nbsp;--&nbsp;Sort an array by values using a user-defined comparison function

--brian
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mhoggatt1
mhoggatt1

ASKER

Thanks for the replies. Thay were very helpful.
Michael