diff --git a/support.admin.inc b/support.admin.inc
index d88572a..26edcc9 100644
--- a/support.admin.inc
+++ b/support.admin.inc
@@ -364,7 +364,7 @@ function support_admin_settings() {
     '#title' => t('Secondary sort order'),
     '#description' => t('If specifying a secondary sort column, you can also specify a secondary sort order..'),
     '#options' => array(t('Ascending'), t('Descending')),
-    '#default_value' => variable_get('support_default_sort_order', SUPPORT_SORT_DESC),
+    '#default_value' => variable_get('support_secondary_sort_order', SUPPORT_SORT_DESC),
   );
 
   $form['comments'] = array(
diff --git a/support.module b/support.module
index c49c45b..fc05da7 100644
--- a/support.module
+++ b/support.module
@@ -3323,6 +3323,12 @@ function support_page_form($form, &$form_state, $client = NULL, $state = NULL) {
     $query->condition('t.state', $state);
   }
 
+  if (variable_get('support_secondary_sort_order', SUPPORT_SORT_DESC) == SUPPORT_SORT_DESC) {
+    $order = 'desc';
+  }
+  else {
+    $order = 'asc';
+  }
   switch (variable_get('support_secondary_sort_tickets', SUPPORT_SORT_NONE)) {
     case SUPPORT_SORT_UPDATE:
       $query->orderBy('last_updated', $order);
