fixed query sort in dashboard