Is there a C# equivalent to C++ std::partial_sort?

前端 未结 3 777
孤城傲影
孤城傲影 2021-02-05 20:06

I\'m trying to implement a paging algorithm for a dataset sortable via many criteria. Unfortunately, while some of those criteria can be implemented at the database level, some

3条回答
  •  臣服心动
    2021-02-05 20:48

    You can use List.Sort(int, int, IComparer):

    inputList.Sort(startIndex, count, Comparer.Default);
    

提交回复
热议问题