added ORDER BY rank to projects sql
authorDylan Lloyd <dylan@dylansserver.com>
Tue, 21 Feb 2012 21:45:53 +0000 (16:45 -0500)
committerDylan Lloyd <dylan@dylansserver.com>
Tue, 21 Feb 2012 21:45:53 +0000 (16:45 -0500)
index.php

index b95b16d..8cb1d62 100644 (file)
--- a/index.php
+++ b/index.php
@@ -194,7 +194,7 @@ OTHER_PROJECTS;
 
   protected function display_exhibits() {
     echo "<div id='exhibit'>";
-    $sql = "SELECT text FROM projects";
+    $sql = "SELECT text FROM projects ORDER BY rank";
     $result = $this->db->query($sql);
     while ($entry = $result->fetch_object()) {
       echo $entry->text;
@@ -208,7 +208,7 @@ OTHER_PROJECTS;
           <h3>my projects:</h3>
         </li>
 HEREDOC;
-    $sql = "SELECT title FROM projects";
+    $sql = "SELECT title FROM projects ORDER BY rank";
     $result = $this->db->query($sql);
     while ($entry = $result->fetch_object()) {
       echo "<li><a class='tab' href='$entry->title'>$entry->title</a></li>";