mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Search: Dashboard results should be sorted alphabetically, Fixes #1685
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user