cc-api-v3-style-guide icon indicating copy to clipboard operation
cc-api-v3-style-guide copied to clipboard

Pagination order_direction and order_by is limiting.

Open zrob opened this issue 11 years ago • 4 comments

Imagine we want to order by two columns. We could potentially say ?order_by=columnA,columnB, but then how would we sort by each? Maybe ?order_by=columnA,columnB&order_direction=asc,desc and the requests have to line up in order. This seems awkward.

Perhaps a better solution is ?order_by=+columnA,-columnB. The + and - would correspond to ascending and descending.

zrob avatar Aug 05 '15 00:08 zrob

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/100609676.

cf-gitbot avatar Aug 05 '15 00:08 cf-gitbot

Dieu wants to do this. Les do it!

Gerg avatar Aug 21 '15 21:08 Gerg

+1

osis avatar Aug 25 '15 01:08 osis

Done! Added a section in pagination that indicates how to do order direction. bf1daf6

:smile_cat:

jeffpak avatar Aug 27 '15 00:08 jeffpak