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