title: Sorting the ListView elements and according to that an other String Array also sorting
body: <blockquote>
    <p>I have one ListView &amp; two String Arrays
    For example One String Array have all countries that is Adopted with ListView &amp; other string 
    Array have their capitals,I'm using the TextWathcher &amp; when it is enter the data in EditText
    when I click on the ListView,according to that Capitals String element also sorting
    &amp; display the relevant element should display by PopupWindow </p>
  </blockquote>
  
  <pre><code>adapter_countries = new ArrayAdapter&lt;String&gt;(getApplicationContext(),
  android.R.layout.simple_list_item_1,allCountries_list);//this is Listview &amp; have coutries      `array`
  all_countries_list_view.setAdapter(adapter_countries);
  all_countries_list_view.setOnItemClickListener(this);
  </code></pre>