title: how can i sort in alphabetic mode my spinners?
body: <p>i've create this code to create one list in my spinner. now i want the list in alphabetical mode (for example xxx, yyy, aaa must be aaa, xxx, yyy)..how can i do?</p>
  
  <pre><code>public class MyAndroidAppActivity extends Activity {
  
  
        private Spinner spinner;
        private EditText Text;
        private ArrayAdapter&lt;String&gt; adapter;
        private Button addButton;
  
        public void onCreate(Bundle savedInstanceState)
        {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          Text = (EditText) findViewById(R.id.et);
          List&lt;String&gt; planets = new ArrayList&lt;String&gt;(Arrays.asList(getResources().getStringArray(R.array.clienti_arrays)));
          adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_item, planets);
          adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
          spinner = (Spinner) findViewById(R.id.spinner1);
          spinner.setAdapter(adapter);
          Collections.sort(planets);
          addButton = (Button) findViewById(R.id.add_new);
          addButton.setOnClickListener(new OnClickListener()
          {
            public void onClick(View v)
            {
              addNewSpinnerItem();
            }
          });
        }
  
        protected void addNewSpinnerItem()
        {
          String textHolder = "" + Text.getText().toString();
          adapter.add(textHolder);
  
        }
      }
  </code></pre>
  
  <p>help me please!!</p>