Index: wp-admin/themes.php
===================================================================
--- wp-admin/themes.php	(revision 12196)
+++ wp-admin/themes.php	(working copy)
@@ -63,6 +63,7 @@
 unset($themes[$ct->name]);
 
 uksort( $themes, "strnatcasecmp" );
+$themes = apply_filters('sort_all_themes', $themes);
 $theme_total = count( $themes );
 $per_page = 15;
 
@@ -173,6 +174,7 @@
 
 $theme_names = array_keys($themes);
 natcasesort($theme_names);
+$theme_names = apply_filters('sort_paged_themes', $theme_names);
 
 $table = array();
 $rows = ceil(count($theme_names) / 3);
@@ -185,7 +187,7 @@
 <tr>
 <?php
 foreach ( $cols as $col => $theme_name ) {
-	$class = array('available-theme');
+	$class = array('available-theme', $themes[$theme_name]['Template']);
 	if ( $row == 1 ) $class[] = 'top';
 	if ( $col == 1 ) $class[] = 'left';
 	if ( $row == $rows ) $class[] = 'bottom';
