1
Good people I have a array
of strings with dates, coming from a query with Firebase database. I want to organize it increasingly.
Ex: 05/09/2016 - 06/09/2016 - 11/11/2016
Dates are entered in my array by method populateViewHolder
:
protected void populateViewHolder(RoomViewHolder viewHolder, EscapeRoom model, int position)
{
String [] datasBancoDeDados = new String[] {model.getData()} ;
}
At each execution of the method it adds a date to my array.
My goal is when organizing this array with dates, move to a Activity
the values from the nodes corresponding to these dates.
For example the date 05/09/2016 would be before the date 06/09/2016 and so pass the values of the database to build a RecyclerView
correctly.
I do not know if I explained very well, I will leave the prints of the app, what I have for now to improve the visualization.
Thank you in advance.
Exactly that, so this code takes my array and makes it organized, right? So I get the positions corresponding to the correct dates?
– user46736
@Lucassoares It will leave the dates of the array in ascending order. Whether this suits you or not, there you have to say.
– Victor Stafusa
Thank you I will do here, especially what I want to organize the dates within the thank array
– user46736