stable sort proposal

森建 moriken at kimamass.com
Mon Sep 17 00:44:48 UTC 2018


It seems like stable sort will be discussed in the 66th meeting of TC39.
I hope for good news!

https://github.com/tc39/agendas/blob/master/2018/09.md#agenda-items


On 2018/09/12 12:02, kai zhu wrote:
> +1
> 
> it would avoid stable-sort workarounds like this [1], [2] for javascript-database implementations.
> 
> [1] testable, deterministic, stable-sort workaround for querying rows from db-lite
> https://github.com/kaizhu256/node-db-lite/blob/2018.4.23/lib.db.js#L1010
> 
> [2] accompanying integration-tests to ensure reproducible, sorted db-queries
> https://github.com/kaizhu256/node-db-lite/blob/2018.4.23/test.js#L64
> 
> kai zhu
> kaizhu256 at gmail.com <mailto:kaizhu256 at gmail.com>
> 
> 
> 
>> On 12 Sep 2018, at 5:09 AM, 森建 <moriken at kimamass.com <mailto:moriken at kimamass.com>> wrote:
>>
>> `Array#sort` is stable in Chrome 70.
>> https://twitter.com/mathias/status/1036626116654637057
>>
>> All modern browsers (and IE 11) have stable sort with `Array#sort`. Would you like to mention `Array#sort` must be a stable sort on specification (>=ES2019)?
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
> 


More information about the es-discuss mailing list