diff --git a/apachesolr.module b/apachesolr.module
index 0509cf8..3363131 100644
--- a/apachesolr.module
+++ b/apachesolr.module
@@ -2780,12 +2780,7 @@ function theme_apachesolr_sort_link($vars) {
     $icon = ' ' . theme('tablesort_indicator', array('style' => $vars['direction']));
   }
   if ($vars['active']) {
-    if (isset($vars['options']['attributes']['class'])) {
-      $vars['options']['attributes']['class'] .= ' active';
-    }
-    else {
-      $vars['options']['attributes']['class'] = 'active';
-    }
+    $vars['options']['attributes']['class'][] = 'active';
   }
   return $icon . apachesolr_l($vars['text'], $vars['path'], $vars['options']);
 }
