[seagrant-dev] API Sorting

Carr, Justin Justin.Carr at oregonstate.edu
Fri Oct 31 22:58:30 UTC 2014

Which API endpoints are we referring to? 

For the What's Fresh API we had discussed returning results by proximity within a given range provided by the query. This way a user could send either a city they're interested in, or their current lat-lng, and get results that are closest at the top of the list.

However, for educational info and the Working Waterfronts app, we hadn't discussed any sorting order yet.


-----Original Message-----
From: seagrant-dev [mailto:seagrant-dev-bounces at osuosl.org] On Behalf Of Evan Tschuy
Sent: Friday, October 31, 2014 3:20 PM
To: seagrant-dev at osuosl.org
Subject: [seagrant-dev] API Sorting

Michael and other BSG devs,

is there any sorting of the API that would work best for y'all?
Currently, it's sorted by whatever random order they're returned by the database.

This is a perfectly fine method of sorting. However, it'd be easy to add sorting across the board -- so sorting by recency might be a nice thing to have so that new vendors and products appear at the top.

What do y'all think?

seagrant-dev mailing list
seagrant-dev at osuosl.org

More information about the seagrant-dev mailing list