Изменил порядок сортировки опечаток так, чтобы новые опечатки были сверху

parent a0d95b00
...@@ -197,6 +197,7 @@ class Typo extends CI_Model { ...@@ -197,6 +197,7 @@ class Typo extends CI_Model {
$this->db->from("messages"); $this->db->from("messages");
$this->db->where("site_id", $siteId); $this->db->where("site_id", $siteId);
$this->db->where("status", 0); $this->db->where("status", 0);
$this->db->order_by("date", "DESC");
return $this->db->get()->result(); return $this->db->get()->result();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment