Milan
ย ยทย MODELLING OF ACTION

Order By!!! Help please!!!

Hello guys! ๐Ÿ˜€ ๐Ÿ‘‹

Can someone help me with this situation I have.

I have a list view with items from one of the collections. You can imagine it as to do list on which I put some activities that have to be done and I want to order that list by this 2 fields: date and start. Both fields are of DateTime type of course. Now, when I pick date and time it all works fine and the list is ordered as it should be but the problem is when I don't pick those 2 fields (or one of them) the document is created in the Firebase but is not shown on that list view. Like it's not recognized for some reason.

The only logical thing that comes to my mind is that something is not right because of those order by options.

Is it possible to order the list by some values if those values don't exist? I put default variables to be shown if value does not exist but the problem remains.

Maybe because it recognizes those default variable values as strings and list is ordered by DateTime values... ๐Ÿคท ๐Ÿค”

Anyways... I would really appreciate your help with this question I have, it's really important for my project. Thank you! ๐Ÿ˜€

3
1 reply