effect icon indicating copy to clipboard operation
effect copied to clipboard

Add new Order.localeString ordering option

Open peterreisz opened this issue 1 year ago • 0 comments

What is the problem this feature would solve?

Order.string is not locale aware, but String module has a locale compare function

What is the feature you are proposing to solve the problem?

Effect should be containing this functionality for the Order module by default:

const localeString = (locales?: string[]) =>
  Order.make((self: string, that: string) =>
    String.localeCompare(that, locales)(self))

What alternatives have you considered?

No response

peterreisz avatar Jul 12 '24 08:07 peterreisz