On 3 Sep 2012, at 22:55, John Taylor-Johnston <jt.johns...@usherbrooke.ca> 
> http://php.net/manual/en/array.sorting.php is pretty clear. But my problem is 
> that sort ($freq) destroyed my key.

Did you actually read it? There's a table on that page that summarises exactly 
what each sorting function does, with a column for whether they "maintain key 

In this case you want http://php.net/asort


Stuart Dallas
3ft9 Ltd
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to