add subsorting to mesh video sort functions