Search: Dashboard results should be sorted alphabetically, Fixes #1685

This commit is contained in:
Torkel Ödegaard 2015-03-31 22:06:19 +02:00
parent 03e336ba9e
commit 3c2bfbfc1c
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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)