Unverified Commit 6ee0c24c authored by MatteoPologruto's avatar MatteoPologruto Committed by GitHub

[skip-changelog] Sort `board search` results with the same name using their platform ID (#2128)

parent 074844db
......@@ -103,7 +103,10 @@ func Search(ctx context.Context, req *rpc.BoardSearchRequest) (*rpc.BoardSearchR
}
sort.Slice(res.Boards, func(i, j int) bool {
return res.Boards[i].Name < res.Boards[j].Name
if res.Boards[i].Name != res.Boards[j].Name {
return res.Boards[i].Name < res.Boards[j].Name
}
return res.Boards[i].Platform.Id < res.Boards[j].Platform.Id
})
return res, nil
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment