I am trying to mimic the EE Gallery ORDER BY “date” query and I am having some difficulty. There seems to be a secondary sort being used if the entry_date field is the same, but I am not sure what it is.
Does anyone either know what the query is, or where I can look it up?