When I try to order a query in app engine java, by date, I find that it does not order the query correctly.
This is the case I have:
three records the first one has the date like this 10/09/2019 (09:21:00)
the second like this 10/09/2019 (12:20:12) and
the third one is like this 10/09/2019 (13:28:00)
but the order given by app engine is the opposite
first 10/09/2019 (12:20:12)
second 10/09/2019 (09:21:00)
third 10/09/2019 (13:28:00)
When the correct way to do the query is:
First 10/09/2019 (09:21:00)
second 10/09/2019 (12:20:12)
third 10/09/2019 (13:28:00)
I have tried in several ways but I can't find a solution, I appreciate your help to improve this process.
Hola joan¿Cómo realizó la consulta? ¿Te refieres a com.google.appengine.api? consulta de clase del almacén de datos ? Hay una Enum Query.SortDirection. ¿Usaste Cloud SQL?Este grupo de discusión está más orientado hacia opiniones generales, tendencias y cuestiones de naturaleza general que afectan a App Engine y Cloud SQL. Para el orden de las consultas por problemas, es posible que reciba un mejor servicio en foros dedicados como stackoverflow, donde los programadores experimentados están al alcance y listos para ayudar.