I hope Code Review/Assistance is allowed here.
I have an array of Integers. These Integers are actually indices of an array.
These indices point indirectly onto items. These Items have an ID. The *indices *should be sorted by this ID.
For a test, I have 4 Items with the IDs
But after sorting, the indices are
I’m pretty sure my Bubblesort is ok and does not have any errors.
This is the Comparator
This is the Sort
Did I miss something? Becaus I feel pretty stupid at the moment.