I\'m using the following query syntax
from table where where orderby orderby
Where the first orderby is a date and second orderby is a date.