(first, second)
| 168 | } |
| 169 | |
| 170 | #compare(first, second) { |
| 171 | if (typeof first === 'number' && typeof second === 'number') { |
| 172 | return first - second; |
| 173 | } |
| 174 | |
| 175 | return String(first).localeCompare(String(second), undefined, { numeric: true, sensitivity: 'base' }); |
| 176 | } |
| 177 | |
| 178 | #applyFilter(emit = true) { |
| 179 | const query = (this.#filter?.value || '').trim().toLocaleLowerCase(); |