Index: apachesolr.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.module,v
retrieving revision 1.1.2.12.2.141
diff -u -p -r1.1.2.12.2.141 apachesolr.module
--- apachesolr.module	13 May 2009 15:03:23 -0000	1.1.2.12.2.141
+++ apachesolr.module	19 May 2009 03:07:48 -0000
@@ -1384,6 +1384,8 @@ function theme_apachesolr_facet_list($it
 }
 
 function theme_apachesolr_sort_list($items) {
+  // theme('item_list') expects a numerically indexed array.
+  $items = array_values($items);
   return theme('item_list', $items);
 }
 
