diff --git apachesolr_search.module apachesolr_search.module
index e237548..ff173b7 100644
--- apachesolr_search.module
+++ apachesolr_search.module
@@ -298,6 +298,14 @@ function apachesolr_search_browse($keys = '', $filters = '', $solrsort = '', $ba
     'facet.sort' => 'true'
   );
   apachesolr_search_add_facet_params($params, $query);
+
+  // Allow modules to alter the query prior to statically caching it.
+  // This can e.g. be used to add available sorts.
+  foreach (module_implements('apachesolr_prepare_query') as $module) {
+    $function_name = $module . '_apachesolr_prepare_query';
+    $function_name($query, $params, 'apachesolr');
+  }
+
   $solr = apachesolr_get_solr();
   apachesolr_current_query($query);
   apachesolr_modify_query($query, $params, 'apachesolr');
