diff --git a/CHANGELOG.md b/CHANGELOG.md index e21e94685d4..ace3efcbe62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ **FIxes** - [Issue #1681](https://github.com/grafana/grafana/issues/1681). MySQL session: fixed problem using mysql as session store - [Issue #1671](https://github.com/grafana/grafana/issues/1671). Data sources: Fixed issue with changing default data source (should not require full page load to take effect, now fixed) +- [Issue #1685](https://github.com/grafana/grafana/issues/1685). Search: Dashboard results should be sorted alphabetically # 2.0.0-Beta1 (2015-03-30) diff --git a/pkg/services/sqlstore/dashboard.go b/pkg/services/sqlstore/dashboard.go index 0384a5bb6e6..7dbebd94e4c 100644 --- a/pkg/services/sqlstore/dashboard.go +++ b/pkg/services/sqlstore/dashboard.go @@ -140,7 +140,7 @@ func SearchDashboards(query *m.SearchDashboardsQuery) error { query.Limit = 300 } - sql.WriteString(fmt.Sprintf(" LIMIT %d", query.Limit)) + sql.WriteString(fmt.Sprintf(" ORDER BY dashboard.title ASC LIMIT %d", query.Limit)) var res []DashboardSearchProjection err := x.Sql(sql.String(), params...).Find(&res)