instead of country, we using DateTime as an attribute field…
Hi Sateesh,
It’s not clear what you meant by `attribute` field, but you need to have the field your sorting with in an index.
Please see Use Indexes to Sort Query Results
Also, you can analyse how your query is performing by utilising cursor.explain().
See Explain Results for more information.
Regards,
Wan.