I know how I can sort by id or number like
$getTicket = $sql->query("SELECT * FROM `ticket`
WHERE `user`='$user->name'
ORDER BY `id` DESC");
I have Status in the ticket table, and in that I have 3 things:
- Answered
- Unanswered
- Done
I want to sort it in this way:
- Unanswered
- Answered
- Done
Is there a way to do this?