本页还没有译文
本页 6 段还没译成Deutsch,下面显示的是英文原文。StringCollationConfig
还没翻译译自英文(tanstack.com)本页 6 段都还没译
type StringCollationConfig =
| {
stringSort?: "lexical";
}
| {
locale?: string;
localeOptions?: object;
stringSort?: "locale";
}
| {
compare: (a, b) => number;
stringSort: "custom";
};Defined in: packages/db/src/types.ts:34
StringCollationConfig - Options for string sorting behavior
This discriminated union allows for three types of string sorting:
- Lexical: Simple character-by-character comparison
- Locale: Locale-aware sorting with optional customization
- Custom: Local comparison by a stable user-provided function reference
Custom comparators must remain deterministic and immutable for their lifetime. Runtime query and index identity uses the exact function reference.
AI 翻译查看英文原文