I'm having a problem with sorting my list in my app. I've made a demo where Users can register a patient in the app and be shown there and the rest in a list.
My plan is that whenever a user registers, that goes into a list and tagged into a sorted number. First register goes into 1, the second goes to 2 and etc. Those sorted will be then sorted accordingly into Firebase then get back for viewing. This viewing will be accordance to what number the patient is given (Patient 1 goes to 1 and so on.) If a user wishes to delete a patient, for example Patient 2, then Patient 1 will be moved to 2 and becomes the new Patient 2. That would mean if a user registers into a new patient, it goes back to one and becomes patient 1.
I've gotten only getting the data, but no idea how to update, store, delete and sort it
Here is the app
Patients.aia (7.1 KB)
Can anyone help?