rm maintainIndices from sort