mirror of https://github.com/grafana/grafana.git
Search: Dashboard results should be sorted alphabetically, Fixes #1685
This commit is contained in:
parent
03e336ba9e
commit
3c2bfbfc1c
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue