Fixes sorting by special fields not working in Solr.