zrhoffman commented on code in PR #7493:
URL: https://github.com/apache/trafficcontrol/pull/7493#discussion_r1188983136


##########
traffic_ops/traffic_ops_golang/role/roles.go:
##########
@@ -644,6 +645,9 @@ func Get(w http.ResponseWriter, r *http.Request) {
                        api.HandleErr(w, r, tx, http.StatusInternalServerError, 
nil, fmt.Errorf("scanning RoleV4 row: %w", err))
                        return
                }
+               sort.Slice(roleV4.Permissions, func(i, j int) bool {
+                       return roleV4.Permissions[i] < roleV4.Permissions[j]
+               })

Review Comment:
   Using `sort.Strings` instead should work.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to