Chap7-2 Earthquake sort problem
I am getting sort problems in Earthquake using the Content Provider. When I start from scratch (so there is no Content Provider present), the earthquakes are listed starting from the most recent first. This makes sense as that's how the data comes in from USGS.
If I then do an immediate "Refresh", the earthquake list is turned over so that the oldest is first and newest last. The reason seems to be that the list is obtained from the newly created Content Provider and the order taken oldest to newest.
Worse, if I wait to do the Refresh until there are new earthquakes, the old ones are are shown oldest to newest (read from the Content Provider) but the new ones are appended in a newest to oldest order as they are read in from USGS.
Anybody else see this problem or do I have something strange here?
|