title: android sort integers from database from big to small
body: <p>I made an quiz android app where the user get score every time he finish the quiz and after that the score will be saved in the database and after that the user can display the saved score. and my question is how I can display or sort these score on the page score from the biggest score to the smallest. 
  this is my code where I get the score and name of the user and set it on a textview:</p>
  
  <pre><code>    TextView tv1 = (TextView) findViewById(R.id.TextView1);
      DbHelper info = new DbHelper(this);
      userInfo.open();
      String data = userInfo.getData();
      userInfo.close();
      tv1.setText(data);
  </code></pre>
  
  <p>my getData method:</p>
  
  <pre><code>    // TODO Auto-generated method stub
          String[] columns = new String[] { KEY_ID2, KEY_NAME, KEY_SCORE};
          Cursor c = ourDbase.query(MyTABLE, columns , null, null, null, null, null);
          String result ="";
  
          int TheRow = c.getColumnIndex(KEY_ID);
          int TheName = c.getColumnIndex(KEY_NAME);
          int TheScore = c.getColumnIndex(KEY_SCORE);
  
          for (c.moveToFirst(); !c.isAfterLast(); c.moveToNext()){
              result = result + c.getString(TheRow ) + " " + c.getString(TheName ) + " " + c.getString(TheScore ) + "\n"; 
          }
  
          return result;
      }
  </code></pre>