Hello
I am having difficulty with array sort using custom comparator.
Anyone please help me.
I have no idea about how to implement comparator interface.
I have array such as [“2024-01-08/01”,“2024-06-09/07”,”2024-09-12/03”]
and I want to sort the array with the second number coming after slash of each array items.
But I cannot find any source to implement comparator interface.
Anyone has the answer?