title: Sorting on multivalued field in Solr
body: <p>I know multivalued field sorting is not supported in Solr . But Is there any way we can sort multivalued field in Solr. I have two documents with field custom_code and values are as below, </p>
  
  <p>Doc 1 : 11, 78, 45, 22</p>
  
  <p>Doc 2 : 56, 74, 62, 10 </p>
  
  <p>When I sort it in ascending order the order should be , </p>
  
  <p>Doc 2 : 56, 74, 62, 10 </p>
  
  <p>Doc 1 : 11, 78, 45, 22 </p>
  
  <p>Here Doc 2 will come first because it has smallest element 10 (which is greater that 11 of doc 1). </p>
  
  <p>How can we achieve this in Solr. What is the easiest way?</p>