This commit is contained in:
Bui
2018-08-07 16:27:10 +01:00
parent 9e60cf0fee
commit e80d9bf605
5 changed files with 21 additions and 13 deletions

View File

@@ -39,6 +39,13 @@
}
}
$scale = array('easy.osu', 'normal.osu', 'hard.osu', 'oni.osu');
usort($files, function ($a, $b) use ($scale) {
$pos_a = array_search($a['songFile'], $scale);
$pos_b = array_search($b['songFile'], $scale);
return $pos_a - $pos_b;
});
$song = array(
"songDir" => $songDir,