Can someone show me how to fix my JQL so that my r...
# questions
c
Can someone show me how to fix my JQL so that my results are ordered by event time? My current sortDesc doesn’t seem to be doing anything…
Copy code
function main() {
  return Events({
    from_date: "2022-10-10",
    to_date: "2022-11-09"
  })
  .groupBy(
    [
      function(ev) {
        return (new Date(ev.time)).toDateString();
      },
      "name"
    ],
    [
      mixpanel.reducer.count()
    ]
  )
  .sortDesc(function(ev) {
    return ev.time
  })
}