| 79 | const comparator = ({ path: a }, { path: b }) => localeCompare(a, b) |
| 80 | |
| 81 | const isUpper = str => { |
| 82 | const ch = str.charAt(0) |
| 83 | return ch === ch.toUpperCase() |
| 84 | } |
| 85 | |
| 86 | const uppers = files.filter(file => isUpper(file.path)) |
| 87 | const others = files.filter(file => !isUpper(file.path)) |