Should we add a check of the indexes against each other to verify they're sorted?