fixed the ordering of retention policies

This commit is contained in:
SJ 2013-08-20 12:04:26 +02:00
parent 0f787d9c52
commit 71f3e8bba0

View File

@ -4,7 +4,7 @@
class ModelPolicyRetention extends Model { class ModelPolicyRetention extends Model {
public function get_rules() { 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; } if(isset($query->rows)) { return $query->rows; }