多列排序还有哪些其他名称?
What are some other names for a multi-column sort?
不确定您到底在追求什么,但如果您使用“稳定”排序算法,您可以根据一列进行排序,然后对第二列进行排序(依此类推),并且它的行为就像您执行了多列排序一样- 列排序。
Not sure exactly what you're after, but if you use a "stable" sorting algorithm, you can sort based on one column, then sort on a second column (and so on), and it will behave as though you did a multi-column sort.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
不确定您到底在追求什么,但如果您使用“稳定”排序算法,您可以根据一列进行排序,然后对第二列进行排序(依此类推),并且它的行为就像您执行了多列排序一样- 列排序。
Not sure exactly what you're after, but if you use a "stable" sorting algorithm, you can sort based on one column, then sort on a second column (and so on), and it will behave as though you did a multi-column sort.