---
order: 6.1
title:
  en-US: Custom Sort
  zh-CN: 自定义排序
---

## zh-CN

向 `SorterCompare` 传入比较函数以自定义排序。 返回值定义与 [`System.Collections.Generic.IComparer<T>` 接口](https://docs.microsoft.com/zh-cn/dotnet/api/system.collections.generic.icomparer-1?view=net-5.0&WT.mc_id=DT-MVP-5003987) 一致。


## en-US

Passing compare functions to `SorterCompare` for custom sorting. The return value definition is the same as [`System.Collections.Generic.IComparer<T>`](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.icomparer-1?view=net-5.0&WT.mc_id=DT-MVP-5003987).
