How to sort the latitude and longitude based on the user's current location.

How to sort the latitude and longitude based on the user's current location.

I have a xml file containing the latitude and longitude. What my app should do is to sort the lat and long based on the user's current location. Any idea... Thank you...
Example file...

<?xml version="1.0" encoding="UTF-8"?>

<entries>
    
    <!-- Begin New York -->
    <entry>
        <id>1</id>
<title>418 Central Prk West</title>
        <price>4,427</price>
        <address>418 Central Prk West, 105, Manhattan</address>
        <reviews>If you are searching for an apartment in Clementon or relocating to Blackwood, then come to Cherrywood and enjoy the best apartments in Clementon, NJ.</reviews>
        <latitude>40.795457</latitude>
<longitude>-73.962151</longitude>
        <featured>1</featured>
        <telNo>(877) 957-5246</telNo>
        <checkInTime>Today 3:00 am - 5:00 pm</checkInTime>
        <date>January 22, 2013</date>
        <categoryId></categoryId>
        <zipCode>10025</zipCode>
        <noOfRooms>3</noOfRooms>
        <bathrooms>2</bathrooms>
        <apartmentType>Condominium</apartmentType>
        <rating>1</rating>
    </entry>
    
    <entry>
        <id>2</id>
<title>66 E. 11 St.</title>
        <price>4,591</price>
        <address>66 E. 11 St., Manhattan</address>
        <reviews>When we first walked to the apartments it was completely filthy...on the outside there was an old broken down vehicle next to our place and the door had ...</reviews>
        <latitude>40.733041</latitude>
<longitude>-73.992181</longitude>
        <featured>1</featured>
        <telNo>(310) 272-8002</telNo>
        <checkInTime>Today 4:00 am - 5:00 pm</checkInTime>
        <date>Febuary 26,2013</date>
        <categoryId></categoryId>
        <zipCode>10002</zipCode>
        <noOfRooms>20</noOfRooms>
        <bathrooms>10</bathrooms>
        <apartmentType>Condominium</apartmentType>
        <rating>2</rating>
    </entry>
    
    <entry>
        <id>3</id>
<title>151 East 58th St.</title>
        <price>6,066</price>
        <address>151 East 58th St., Manhattan</address>
        <reviews>Just imagine 12 adults and a 13, 9, 4 and 2 2-year olds being couped up for 5-6 days!!! The condominium was very clean (as was the other 3 rooms I have</reviews>
        <latitude>40.762058</latitude>
<longitude>-73.967698</longitude>
        <featured>1</featured>
        <telNo>(212) 355-3550</telNo>
        <checkInTime>Today 2:00 am - 6:00 pm</checkInTime>
        <date>January 12,13</date>
        <categoryId></categoryId>
        <zipCode>10022</zipCode>
        <noOfRooms>4</noOfRooms>
        <bathrooms>6</bathrooms>
        <apartmentType>Rentals</apartmentType>
        <rating>3</rating>
    </entry>
</entries>