Added graph sorting for dashboards.