osmlab / to-fix-backend

The to-fix server
BSD 3-Clause "New" or "Revised" License
15 stars 13 forks source link

Add `sort` property to items #150

Closed batpad closed 6 years ago

batpad commented 7 years ago

We should add a sort property to items that is an integer.

Item creators can then populate this with an integer to indicate priority / sort order. The model should then by default sort by this parameter (and have a secondary sort on createdAt or so?)

cc @emilymdubois @samanpwbb

batpad commented 7 years ago

So sort would be a field on Item and we may need a sortName on projects so that the UI can show to the user what items are being sorted by.

I'm not sure if sortName should be a separate field on Project or if it can be a convention that is encapsulated within the metadata for the Project.