pub fn ordered(data: &TextSnapshot, group: &[usize]) -> Vec<usize>
与 Python 一样,仅在来源编号乱序时稳定排序,等号不改变成员顺序。