Aggregate is taking 23 secs to execute

Working on aggrgation query with pipeline
match
group
sort
we have around 4lacs data which is taking around 23secs to fetch results
how can we improve the performance