From 2bdd1e5e45db2e0714280605ddad7df7639c27b3 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 3 Mar 2015 07:08:45 +0000 Subject: [PATCH] specified order_by in FileMode::getAll --- codepot/src/codepot/models/filemodel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codepot/src/codepot/models/filemodel.php b/codepot/src/codepot/models/filemodel.php index 52c3a32e..5b99c061 100644 --- a/codepot/src/codepot/models/filemodel.php +++ b/codepot/src/codepot/models/filemodel.php @@ -26,6 +26,8 @@ class FileModel extends Model { $this->db->trans_start (); $this->db->where ('projectid', $project->id); + $this->db->order_by ('tag', 'desc'); + $this->db->order_by ('name', 'asc'); $query = $this->db->get ('file'); $this->db->trans_complete ();