Inconsistent projects order
przmv opened this issue · 3 comments
Describe the bug
Fatal error when generating a project
To Reproduce
When projects are created they are listed in inconsistent order
- Generate app
- Sign up and Login
- Go to /projects
- Create several projects
Expected behavior/code
Projects list has consistent order (by name or by creation timestamp)
Nice idea here - that should be easy to add. Just out of curiosity, are you opting into Firestore? How about redux? Could you provide your list of answers to the generator?
If you are using Firestore, something to note is that running a query that looks for projects created by the current user and sorts by created time it will throw the following error (since indexes aren't setup):
Since the goal is to have things work out of the box, I am going to stick to sorting by documentId. What are your thoughts on that?
In v5.3.1 they are ordered by documentId, as mentioned ordering by createdAt was left out since it requires adding an index