title: sort the results of array in alphabetical order in php
body: <p>I am display the brand names with the count of brand number in an array,i want to sort them in alphabetical order.Following is the snippet</p>
  
  <pre><code>&lt;?php
  foreach($new_array as $BRAND =&gt; $n) {
  
  ?&gt;
                          &lt;li&gt;&lt;input type="checkbox"  class="brand" value="&lt;?php echo $BRAND; ?&gt;" name="Brand"  
                  id="roundedOne"  /&gt;&lt;label for="roundedOne"&gt;&lt;?php echo $BRAND;?&gt; &lt;span class="number_count"&gt;&lt;?php echo "($n)"; ?&gt;&lt;/label&gt;&lt;/li&gt;
                  &lt;?php
  
  }
  ?&gt;
  </code></pre>
  
  <p>How can i sort the list to be displayed in alphabetical order.This array is containing the brand names with their count in that..
  Please guide me on this..</p>