( clause: OrderByClause, collection: CollectionLike<any, any>, )
| 386 | * different string collation behavior. |
| 387 | */ |
| 388 | export function buildCompareOptions( |
| 389 | clause: OrderByClause, |
| 390 | collection: CollectionLike<any, any>, |
| 391 | ): CompareOptions { |
| 392 | if (clause.compareOptions.stringSort !== undefined) { |
| 393 | return clause.compareOptions |
| 394 | } |
| 395 | |
| 396 | return { |
| 397 | ...collection.compareOptions, |
| 398 | direction: clause.compareOptions.direction, |
| 399 | nulls: clause.compareOptions.nulls, |
| 400 | } |
| 401 | } |
no outgoing calls
no test coverage detected