Sort by referenced journal date

I have an advanced query currently to list classes pages related to the current page (that is the course page) by a tag that has the link created with the datepicker. But I notice that the sorting is currently not sorting properly, because it’s not putting the months in an ascending order. How can I change my query to sort the pages properly?

  query-properties:: [:page :date :teacher :tecnologies]
  query-sort-by:: date
  query-sort-desc:: false
  #+BEGIN_QUERY
  { 
  :title [ :h1 "Classes" ]
  :query [
  :find (pull ?p [*])
  :in $ ?current
  :where
  [?p :block/name ?pname]
  [?t :block/name ?current]
  [?t :block/original-name ?original-current]
  (page-property ?p :course ?original-current)
  (page-property ?p :type "class")
  ]
  :inputs [:current-page]
  }
  #+END_QUERY