specified order_by in FileMode::getAll

This commit is contained in:
hyung-hwan 2015-03-03 07:08:45 +00:00
parent ef8f044d12
commit 2bdd1e5e45

View File

@ -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 ();