title: Sorting with Multivalued Field in Solr
body: <p>I Have a Solr index that stores Price in a multivalued field for each Product.</p>
  
  <p>I need to sort the result set by Price where the Price is Low to high and High to Low.</p>
  
  <p>I try to use sorting on Price it's showing Error You can't sort on multivalued=True fields.</p>
  
  <p>below is my solr XML</p>
  
  <pre><code>&lt;arr name="sellprice"&gt;
  &lt;float&gt;195.0&lt;/float&gt;
  &lt;float&gt;136.5&lt;/float&gt;
  &lt;float&gt;10.0&lt;/float&gt;
  &lt;/arr&gt;
  </code></pre>
  
  <p>in schema.xml</p>
  
  <pre><code> &lt;field name="sellprice" type="float" indexed="true" stored="true" multiValued="true"/&gt;
  </code></pre>
  
  <p>In C# Code</p>
  
  <pre><code>ISolrQueryResults&lt;ProductTest2&gt; powerArticles = solr.Query(new
  SolrQuery("WebCategory_Id:10") &amp;&amp; new SolrQueryInList("FilterID",
      146), new QueryOptions { FilterQueries = new[] { new
  SolrQueryByRange&lt;decimal&gt;("sellprice", 10, 40) }, OrderBy = new[] {
      new SolrNet.SortOrder(sellprice, desc) } });
  </code></pre>
  
  <p>Can somebody explain with some good example?</p>