CIVIS-project / YouPower

Work repository for development of the CIVIS project
Apache License 2.0
4 stars 6 forks source link

Allow choosing according to what field search results are sorted #8

Closed FruitieX closed 9 years ago

FruitieX commented 9 years ago

Could apply to all sorts of API & DB calls that return lists of some kind

FruitieX commented 9 years ago

To clarify: it should be possible through the REST API calls to supply a sorting order, especially where entries are paginated so that we can get every result in the desired order. Mongoose has .sort() for this, we just need to come up with a way to pass the parameter we want to it.

sanja7s commented 9 years ago

for now we have search by the name only. if needed more fields, then this becomes relevant.