mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
1be43911b4
Set Prettier's "trailingComma" setting to "es5" GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
11 lines
405 B
JavaScript
11 lines
405 B
JavaScript
// The collator used to sort files docs and folders in the tree.
|
|
// Uses English as base language for consistency.
|
|
// Options used:
|
|
// numeric: true so 10 comes after 2
|
|
// sensitivity: 'variant' so case and accent are not equal
|
|
// caseFirst: 'upper' so upper-case letters come first
|
|
export const fileCollator = new Intl.Collator('en', {
|
|
numeric: true,
|
|
sensitivity: 'variant',
|
|
caseFirst: 'upper',
|
|
})
|