diff --git a/apachesolr_views_query.inc b/apachesolr_views_query.inc
index fc0cb7d..868ac70 100644
--- a/apachesolr_views_query.inc
+++ b/apachesolr_views_query.inc
@@ -141,10 +141,9 @@ class apachesolr_views_query extends views_plugin_query {
       }
 
       $solr = apachesolr_get_solr($env_id);
-      $query = new ApachesolrViewsSolrBaseQuery('apachesolr', $solr, $this->query_params, '', current_path());
-
-      // Add sorting. The setSolrsort method can't be used, because it doesn't support multiple sorting criteria.
-      $query->replaceParam('sort', $this->orderby);
+      // Get sorting from the sort block.
+      $sort = isset($_GET['solrsort']) ? $_GET['solrsort'] : '';
+      $query = new ApachesolrViewsSolrBaseQuery('apachesolr', $solr, $this->query_params, $sort, current_path());
 
       $query->page = $this->pager->current_page;
 
