Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.217
diff -u -r1.217 theme.inc
--- includes/theme.inc	14 Oct 2004 02:38:32 -0000	1.217
+++ includes/theme.inc	16 Nov 2003 11:53:00 -0000
@@ -795,6 +795,22 @@
 }
 
 /**
+ * @return
+ *   Return code that emits the 'sort ascending' icon.
+ */
+function theme_tablesort_asc() {
+  return theme('image', 'misc/arrow-asc.png', t('sort icon'), t('sort ascending'));
+}
+
+/**
+ * @return
+ *   Return code that emits the 'sort descending' icon.
+ */
+function theme_tablesort_desc() {
+  return theme('image', 'misc/arrow-desc.png', t('sort icon'), t('sort descending'));
+}
+
+/**
  * Execute hook_footer() which is run at the end of the page right before the
  * close of the body tag.
  *
Index: includes/tablesort.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/tablesort.inc,v
retrieving revision 1.29
diff -u -r1.29 tablesort.inc
--- includes/tablesort.inc	15 Oct 2004 22:16:00 -0000	1.29
+++ includes/tablesort.inc	16 Nov 2003 11:17:24 -0000
@@ -78,8 +78,7 @@
     if ($cell['data'] == $ts['name']) {
       $ts['sort'] = (($ts['sort'] == 'asc') ? 'desc' : 'asc');
       $cell['class'] = 'active';
-      $title = ($ts['sort'] == 'asc' ? t('sort ascending') : t('sort descending'));
-      $image = '&nbsp;'. theme('image', 'misc/arrow-'. $ts['sort'] .'.png', t('sort icon'), $title);
+      $image = theme('tablesort_'. $ts['sort']);
     }
     else {
       // If the user clicks a different header, we want to sort ascending initially.
@@ -201,5 +200,4 @@
   }
   return 'asc';
 }
-
 ?>
