summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--user_guide/database/active_record.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html
index b538a4bcb..80af07ca2 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -360,7 +360,13 @@ The second parameter lets you set the direction of the result. Options are <kbd
<code>$this->db->orderby('title desc, name asc');
<br /><br />// Produces: ORDER BY title DESC, name ASC
</code>
-
+
+<p>Or multiple function calls can be made if you need multiple fields.</p>
+
+<code>$this->db->orderby("title", "desc");<br />
+$this->db->orderby("name", "asc");
+<br /><br />// Produces: ORDER BY title DESC, name ASC
+</code>
<h2>$this->db->limit();</h2>