code: func SortDashboards(by string, ds []*Dashboard) {
  	var sorter func(i, j int) bool
  	switch by {
  	case "CreatedAt":
  		sorter = func(i, j int) bool {
  			return ds[j].Meta.CreatedAt.After(ds[i].Meta.CreatedAt)
  		}
  	case "UpdatedAt":
  		sorter = func(i, j int) bool {
  			return ds[j].Meta.UpdatedAt.After(ds[i].Meta.UpdatedAt)
  		}
  	case "Name":
  		sorter = func(i, j int) bool {
  			return ds[i].Name < ds[j].Name
  		}
  	default:
  		sorter = func(i, j int) bool {
  			return ds[i].ID < ds[j].ID
  		}
  	}
  
  	sort.Slice(ds, sorter)
  }
docs: // SortDashboards sorts a slice of dashboards by a field.