@stof Good catch http://www.php.net/manual/en/function.uasort.php
```php
// Comparison function
function cmp($a, $b) {
    if ($a == $b) {
        return 0;
    }
    return ($a < $b) ? -1 : 1;
}
```