rank substr high
stable sort