rob05c commented on issue #2274: Profiles endpoint unordered
URL: 
https://github.com/apache/incubator-trafficcontrol/issues/2274#issuecomment-389306244
 
 
   Ordering in the database can be expensive, and the API has never guaranteed 
order. See https://github.com/apache/incubator-trafficcontrol/issues/2259
   
   I'm -1 on sorting in the database; better to put the workload on 
clients/browsers, than the server.
   
   If you need to order, most languages can easily sort. On the command line, 
`curl -Lvsk --cookie $mc 'https://localhost/api/1.2/profiles' | jq '.response | 
sort_by(.name)'`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to