diff --git a/webui/model/policy/retention.php b/webui/model/policy/retention.php index 903eaa73..0b2af7e4 100644 --- a/webui/model/policy/retention.php +++ b/webui/model/policy/retention.php @@ -4,7 +4,7 @@ class ModelPolicyRetention extends Model { public function get_rules() { - $query = $this->db->query("SELECT * FROM " . TABLE_RETENTION_RULE . " ORDER BY id"); + $query = $this->db->query("SELECT * FROM " . TABLE_RETENTION_RULE . " ORDER BY domain, id"); if(isset($query->rows)) { return $query->rows; }