diff --git a/nextrip.php b/nextrip.php index a4a609f..41504ec 100644 --- a/nextrip.php +++ b/nextrip.php @@ -120,6 +120,7 @@ $desc = $_GET['desc']; $favorites[$favSet] = $desc; + ksort($favorites); setcookie("favorites", json_encode($favorites)); echo "

{$favSet}({$desc})は設定しました。

"; } else if(isset($favRemove)) {