>>909
>ksort($old_files, SORT_NUMERIC);

使う関数が間違ってる