[GitHub] rob05c commented on issue #2274: Profiles endpoint unordered

2018-05-18 Thread GitBox
rob05c commented on issue #2274: Profiles endpoint unordered URL: https://github.com/apache/incubator-trafficcontrol/issues/2274#issuecomment-390222865 I agree we should revisit `orderby` in API 2.0. However, currently, 1.x/profiles doesn't support orderby, per https://traffic-control-cdn

[GitHub] rob05c commented on issue #2274: Profiles endpoint unordered

2018-05-18 Thread GitBox
rob05c commented on issue #2274: Profiles endpoint unordered URL: https://github.com/apache/incubator-trafficcontrol/issues/2274#issuecomment-390222865 I agree we should revisit `orderby` in API 2.0. However, currently, 1.x/profiles doesn't support orderby, per https://traffic-control-cdn

[GitHub] rob05c commented on issue #2274: Profiles endpoint unordered

2018-05-17 Thread GitBox
rob05c commented on issue #2274: Profiles endpoint unordered URL: https://github.com/apache/incubator-trafficcontrol/issues/2274#issuecomment-390024452 Just because something is common doesn't make it good. And yes, we have it on existing endpoints. But IMO we should be reducing unnecessar

[GitHub] rob05c commented on issue #2274: Profiles endpoint unordered

2018-05-17 Thread GitBox
rob05c commented on issue #2274: Profiles endpoint unordered URL: https://github.com/apache/incubator-trafficcontrol/issues/2274#issuecomment-390010442 Can the Portal not simply `profiles.sort(function(a, b){if(a.name < b.name) return -1; else return 1;})` ? --

[GitHub] rob05c commented on issue #2274: Profiles endpoint unordered

2018-05-17 Thread GitBox
rob05c commented on issue #2274: Profiles endpoint unordered URL: https://github.com/apache/incubator-trafficcontrol/issues/2274#issuecomment-390010442 Can the Portal not simply `profiles.sort(function(a, b){if(a.name < b.name) return -1; else return 1})` ? ---