Re: [w3c/IndexedDB] Add note about sorting by code unit (#182)

I'll take up the topic of language-aware and Unicode sorting in #38.

I don't think the "flesh out" edit is a good one as it goes in the wrong direction. It says how one could work around the fact that the sorted name list is in code point order rather than saying (as the section head suggests) why this order was chosen. I'd suggest:

> This matches the `Array.prototype.sort` on an `Array` of `Strings`. This ordering compares the 16-bit code units in each string, producing a highly efficient, consistent, and deterministic sort order. The resulting list will not match any particular alphabet or lexicographical order, particularly for code points represented by a surrogate pair.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/pull/182#issuecomment-289150913

Received on Friday, 24 March 2017 21:47:02 UTC