Hi there again,
my problem should have an easy answer but i can’t seem to figure it out.
I have an unsorted Array of floats.
i sort the array with
the sorting works and i get a new sorted array,
now i need to know what the new index is of the smallest number in my old array so i can use that index number in another function. (to make sure i load in the last created file).
currently i’m using this method but this doesn’t work.
int indexOfLastCreatedFile = dateCreatedArray.indexOfSorted(sorter, dateCreatedArray.getFirst());
int indexOfLastCreatedFile = dateCreatedArray.indexOfSorted(sorter, dateCreatedArray.getLast());
as well but that doesn’t work either.
how do i get the right index?