I meant something like

```php
$options['sort'] = SORT_NATURAL;
if (isset($options['sort']) && !empty($options['sort']) {
    array_multisort($files, $options['sort'], $files);
}
```