Zipcodes sorted by longitude: Note, you do not need to print this version but you should be able to create this by an appropriate call to you selectSort function. 94101,37.785,-122.728,San Francisco,San Francisco,CA,776733 97201,45.499,-122.693,Portland,Multnomah,OR,529121 98101,47.432,-121.803,Seattle,King,WA,563374 95101,37.189,-121.705,San Jose,Santa Clara,CA,894943 90001,33.974,-118.248,Los Angeles,Los Angeles,CA,3694820 92101,32.721,-117.174,San Diego,San Diego,CA,1223400 85001,33.704,-112.352,Phoenix,Maricopa,AZ,1321045 79901,31.764,-106.485,El Paso,El Paso,TX,563662 80201,39.726,-104.857,Denver,Denver,CO,554636 78201,29.400,-98.537,San Antonio,Bexar,TX,1144646 73301,30.326,-97.771,Austin,Travis,TX,656562 73101,35.492,-97.563,Oklahoma City,Oklahoma,OK,506132 76101,32.771,-97.291,Fort Worth,Tarrant,TX,534694 75201,32.781,-96.790,Dallas,Dallas,TX,1188580 77001,29.813,-95.310,Houston,Harris,TX,1953631 37501,35.169,-89.990,Memphis,Shelby,TN,650100 53201,43.011,-87.958,Milwaukee,Milwaukee,WI,596974 60601,41.812,-87.687,Chicago,Cook,IL,2896016 48201,42.240,-83.151,Detroit,Wayne,MI,951270 43085,40.040,-82.897,Columbus,Franklin,OH,711470 32099,30.338,-81.769,Jacksonville,Duval,FL,735617 28201,35.260,-80.804,Charlotte,Mecklenburg,NC,540828 20001,38.912,-77.017,Washington,District Of Columbia,DC,572059 21201,39.297,-76.623,Baltimore,Baltimore City,MD,651154 19019,40.002,-75.118,Philadelphia,Philadelphia,PA,1517550 10001,40.750,-73.996,New York,New York,NY,8008278 02101,42.371,-71.027,Boston,Suffolk,MA,589141 Zipcodes sorted by zipcode: You should print this sorted list 02101,42.371,-71.027,Boston,Suffolk,MA,589141 10001,40.750,-73.996,New York,New York,NY,8008278 19019,40.002,-75.118,Philadelphia,Philadelphia,PA,1517550 20001,38.912,-77.017,Washington,District Of Columbia,DC,572059 21201,39.297,-76.623,Baltimore,Baltimore City,MD,651154 28201,35.260,-80.804,Charlotte,Mecklenburg,NC,540828 32099,30.338,-81.769,Jacksonville,Duval,FL,735617 37501,35.169,-89.990,Memphis,Shelby,TN,650100 43085,40.040,-82.897,Columbus,Franklin,OH,711470 48201,42.240,-83.151,Detroit,Wayne,MI,951270 53201,43.011,-87.958,Milwaukee,Milwaukee,WI,596974 60601,41.812,-87.687,Chicago,Cook,IL,2896016 73101,35.492,-97.563,Oklahoma City,Oklahoma,OK,506132 73301,30.326,-97.771,Austin,Travis,TX,656562 75201,32.781,-96.790,Dallas,Dallas,TX,1188580 76101,32.771,-97.291,Fort Worth,Tarrant,TX,534694 77001,29.813,-95.310,Houston,Harris,TX,1953631 78201,29.400,-98.537,San Antonio,Bexar,TX,1144646 79901,31.764,-106.485,El Paso,El Paso,TX,563662 80201,39.726,-104.857,Denver,Denver,CO,554636 85001,33.704,-112.352,Phoenix,Maricopa,AZ,1321045 90001,33.974,-118.248,Los Angeles,Los Angeles,CA,3694820 92101,32.721,-117.174,San Diego,San Diego,CA,1223400 94101,37.785,-122.728,San Francisco,San Francisco,CA,776733 95101,37.189,-121.705,San Jose,Santa Clara,CA,894943 97201,45.499,-122.693,Portland,Multnomah,OR,529121 98101,47.432,-121.803,Seattle,King,WA,563374 Enter a zipcode: zippy Sorry, nothing found for zipcode zippy. Try again Enter a zipcode: 19081 Sorry, nothing found for zipcode 19081. Try again Enter a zipcode: 27705 Sorry, nothing found for zipcode 27705. Try again Enter a zipcode: 59102 Sorry, nothing found for zipcode 59102. Try again Enter a zipcode: 98101 98101,47.432,-121.803,Seattle,King,WA,563374 Enter a city,state: Columbus,OH Found information at index 8 43085,40.040,-82.897,Columbus,Franklin,OH,711470 Enter a city,state: Swarthmore,PA Sorry, nothing found for Swarthmore, PA