# STEPS TO REPRODUCE 1. inspect <https://webkit.org/> 2. toggle dark mode (should have `chevron.svg` and `chevron-dark.svg`) # EXPECTED `chevron.svg` should be before `chevron-dark.svg` # ACTUAL `chevron.svg` is after `chevron-dark.svg` I believe this is because Web Inspector does a `String.prototype.localeCompare` against the titles as they are shown in the UI which includes the extension. It may be desirable to call `WI.fileExtensionForFilename` before sorting and only include the extension if the filename is the same.
<rdar://problem/72905353>
Pull request: https://github.com/WebKit/WebKit/pull/18298
Committed 268557@main (5060974c125e): <https://commits.webkit.org/268557@main> Reviewed commits have been landed. Closing PR #18298 and removing active labels.
Re-opening to address an enhancement recommended during review.
Pull request: https://github.com/WebKit/WebKit/pull/18350