Android : Why NUMBER_KEY return the number in reverse order
<p>I am trying to read the contact list using the following code: </p>

<pre><code>ContentResolver cr = getContentResolver();
Cursor cur = cr.query(People.CONTENT_URI,null, null, null, null);
if (cur.getCount() &gt; 0) {

while (cur.moveToNext()) 
{ 
   String id = cur.getString(cur.getColumnIndex(People._ID));
       Cursor personCur = cr.query(Contacts.Phones.CONTENT_URI, 
                null, 
                Contacts.Phones.PERSON_ID +"= ?"+                                     Contacts.Phones.NUMBER_KEY , 
                    new String[]{id}, null);

            String phoneKey = "";
            while (personCur.moveToNext()) {
                phoneKey = personCur.getString(personCur.getColumnIndex(Contacts.Phones.NUMBER_KEY));

            } 
</code></pre>

<p>The problem is that phoneKey return in reverse order meaning if the phone number is 054-123-4567 the value is 7654321450</p>

<p>I could not find any documentation on this issue.
Any idea how to fix it? or is it the expected result?</p>

<p>thanks
-Z</p>
