Skip to content

Commit

Permalink
Merge pull request #123 from ikhsan3adi/fix-bug-laporan
Browse files Browse the repository at this point in the history
fix urutan siswa salah saat generate laporan 🙏
  • Loading branch information
ikhsan3adi authored Jul 24, 2024
2 parents 07f3f04 + 8945ba5 commit 5f60322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Models/SiswaModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ public function getSiswaByKelas($id_kelas)
'LEFT'
)
->join('tb_jurusan', 'tb_kelas.id_jurusan = tb_jurusan.id', 'left')
->where(['tb_siswa.id_kelas' => $id_kelas])->findAll();
->where(['tb_siswa.id_kelas' => $id_kelas])
->orderBy('nama_siswa')
->findAll();
}

public function createSiswa($nis, $nama, $idKelas, $jenisKelamin, $noHp)
Expand Down

0 comments on commit 5f60322

Please sign in to comment.