[Webkit-unassigned] [Bug 224047] New: Sorting certain string arrays with localeCompare produces different results on successive calls

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 1 07:14:22 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=224047

            Bug ID: 224047
           Summary: Sorting certain string arrays with localeCompare
                    produces different results on successive calls
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Intel)
                OS: macOS 10.15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ebenpackwood at gmail.com

Created attachment 424894

  --> https://bugs.webkit.org/attachment.cgi?id=424894&action=review

Minimal working example

Sorting certain string arrays using `localeCompare` can result in the array being sorted differently when `sort` is called multiple times successively.

It's not immediately clear what the root cause of this issue is, but it seems to be related to the presence of certain unicode strings in the array.

A minimal working example is attached. Each call to `sort` results in a different ordering of the array.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210401/9ca7ebd0/attachment.htm>


More information about the webkit-unassigned mailing list