Spinner data sorting in Android
<p>I have spinner with array list thats work fine, but i want to sort out the datas from a to z (example: apple,ball,cat,dog...)order. I submit my code below </p>

<pre><code>    ArrayList&lt;String&gt; SourceArray = new ArrayList&lt;String&gt;();
    Spinner Sourcespinner;// = new Spinner(this);
    Sourcespinner = (Spinner)findViewById(R.id.Spinner1);
    ArrayAdapter&lt;String&gt; SourceArrayAdapter = new ArrayAdapter&lt;String&gt;(this,
     android.R.layout.simple_spinner_item,SourceArray);
    SourceArrayAdapter.add("Chennai");
    SourceArrayAdapter.add("Mumbai");
    SourceArrayAdapter.add("Kolkatta");
    SourceArrayAdapter.add("Delhi");
    Sourcespinner.setAdapter(SourceArrayAdapter);`
</code></pre>

<p>I don't know how to do sorting for this</p>
