SuLab / biogps_core

http://biogps.org/
GNU General Public License v3.0
0 stars 0 forks source link

allow sorting options in dataset library search API #13

Open JTFouquier opened 8 years ago

JTFouquier commented 8 years ago

number of samples, upload date, rating


JTFouquier commented 8 years ago

A "sort by" dropdown should be created for search result page. The mock up looks roughly like this:

mockup

The query service supports the "sort" query parameter, e.g,

http://biogps.org/search/dataset/?q=cancer&format=json&sort=-popularity.all_time

http://biogps.org/search/dataset/?q=cancer&format=json&sort=-created

http://biogps.org/search/dataset/?q=cancer&format=json&sort=-rating_data.avg

http://biogps.org/search/dataset/?q=cancer&format=json&sort=-sample_count

(last two sorting options seem not working correctly, should be fixed.)


Original comment by: Chunlei Wu