InfoAmazonia / rede-site

Rede InfoAmazonia is a platform for water quality sensors
MIT License
9 stars 6 forks source link

order sensors by readings #66

Closed vjpixel closed 8 years ago

vjpixel commented 8 years ago

right now, the platform seems to be showing the sensors in the order they we're created. it leads to a problem that show the test sensors first.

since some sensors can got disconnected with after some time, I think that makes sense to order by the last one that sent readings.

miguelpeixe commented 8 years ago

for that the sensor object must have a "updatedAt" value. this ordering could also be a default order by the backend.