title: How to return results from Azure Search order by values of a given field
body: <p>below is a example of the search results returned from Azure Search after searching for  everything in the gift department (<strong>default</strong>)</p>
  
  <pre><code>   {
          "id": "1",
          "type": "trousers",
          "department": "gift",
          "description": "This is the description of the item"
      }
      {
          "id": "2",
          "type": "toy",
          "department": "gift",
          "description": "This is the description of the item"
      }
      {
          "id": "3",
          "type": "shirt",
          "department": "gift",
          "description": "This is the description of the item"
      }
  </code></pre>
  
  <p>The result set required should be ordered by type in this order- <strong>toy</strong>,<strong>shirt</strong>,<strong>trousers</strong>. As you can see the result is not a simple orderby "type" field asc/desc. the expected result should be </p>
  
  <pre><code>  {
          "id": "2",
          "type": "toy",
          "department": "gift",
          "description": "This is the description of the item"
      }
  
    {
          "id": "3",
          "type": "shirt",
          "department": "gift",
          "description": "This is the description of the item"
      }
  
     {
          "id": "1",
          "type": "trousers",
          "department": "gift",
          "description": "This is the description of the item"
      }
  </code></pre>
  
  <p>How do i go about doing this - written descriptions and/or code snippets would be fine?</p>