I've been getting really uneven results trying to request a numerically sorted list of records from Amazon SimpleDB.
I am zero padding my numbers to get them selected lexigraphically, but still no luck. These two queries are giving the same result, for example:
select * from cbcallers where calls_completed is not null order by calls_completed desc select * from cbcallers where calls_completed is not null order by calls_completed asc
However, I am getting the correct results using Amazon's query language:
['calls_completed'starts-with ''] sort 'calls_completed' desc
And last week, I was getting different (unordered) results from this query on the same dataset. Anyone have any idea what's up? Is my query jacked?
The dataset looks like this:
Sdb-Item-Name, calls_completed, name, icon 8uda23sd7, 0000002, john smith, /myimgicon.jpg 8uda5asd3, 0000015, john smarts, /myimgicon2.jpg 8udassad8, 0000550, john smoogie, /myimgicon3.jpg