W3C home > Mailing lists > Public > public-i18n-archive@w3.org > April to June 2020

Re: [i18n-activity] Sorting nodes alphabetically is underspecified (#598)

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Fri, 10 Apr 2020 19:04:37 +0000
To: public-i18n-archive@w3.org
Message-ID: <issue_comment.created-612173663-1586545476-sysbot+gh@w3.org>
Yes, we chose to sort by `code unit` because Web Audio API is a JavaScript API, and JavaScript DOMStrings are in UTF-16 and sorted by code unit, not code point. Since these are opaque identifiers and all we want is a stable sort that works the same on all platforms and all implementations, code unit sort is the simplest and meets our needs. See https://github.com/rtoy/web-audio-api/commit/986bae6b00552bac3458bd1b5b603628e08c1f6c

@r12a @aphillips could you confirm that this is ok?

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/i18n-activity/issues/598#issuecomment-612173663 using your GitHub account
Received on Friday, 10 April 2020 19:04:40 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 18:09:41 UTC