restating plea for help with sort
| From: | Jim Long | Date: | Thu, 27 Feb 2003 18:35:19 +0000 |
| Subject: | restating plea for help with sort | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-137453@lists.php.net to get a copy of this message | ||
Hi,
I have an array with an html link as key and different $vars as val:
$list = array (
'<a href="http://someplace.com/">some
place</a>' => $vendor1_total,
'<a href="http://anotherplace.com/">another
place</a>' => $vendor2__total,
[snip] etc..
some vals are numeric and some vals are "n/a"
asort works to sort the array as a string, however, I need to sort the
numeric vals numeric, then have the n/a's go away or be output at the
bottom of the sort.
Please be clear and gentle.. I'm not schooled in php, just a tinkerer
trying to make this mess work.
Thanks In Advance,
Jim Long