This commit is contained in:
[Valentino Heman Budiarto]
2026-06-22 16:07:24 +07:00
parent 102ac2c50a
commit 4d6e825f16
3 changed files with 36 additions and 10 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ export default function ManageRoomsPage() {
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
{/* TAMBAHKAN [...rooms].sort(...) SEBELUM .map */}
{/* [...rooms].sort memastikan urutan kelas selalu rapi dari D101, D102, dst */}
{[...rooms]
.sort((a, b) => a.name.localeCompare(b.name))
.map((room) => (