colidxs are redundant, need sort functions