I have an adapter that has a date in the row. When the user updates the date, I want the rows to re-sort based on my UNIX time in the object
date property. I believe I need to use a Comparator
and / or a Collections
sort for this on my ArrayList<Object>
. As seen from this question.
My question is this: When I call notifyDataSetChanged()
, where in the ArrayAdapter
does the sorting need to take place? Or would it be outside of the adapter when I build it (which would not make sense to me)?