index is 1-based, so take that into account when calculating the pointer to pass into the compare function.
Attach a file by drag & drop or click to upload