As you might have already guessed I don't want to sort the pointer addresses but the objects/data.
At the moment I have an array like this:
CArray <ReadObject *> readCollecion;
and I sort it like that:
std::sort(readCollecion.GetData(), readCollecion.GetData()+readCollecion.GetSize(), keySortFunction);
Works perfectly with the keySortFunction.
The problem is I need pointers to my objects because I need to modify the objects while they are already in the array. I guess I need and Array like this:
CArray <ReadObject *> readCollecion;
Now I can change the objects afterwards but my sort seems to be unable to deal with this.