Re: stable sort proposal

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: stable sort proposal

森建
`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
[hidden email]
https://mail.mozilla.org/listinfo/es-discuss
Reply | Threaded
Open this post in threaded view
|

Re: stable sort proposal

kai zhu
+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

[2] accompanying integration-tests to ensure reproducible, sorted db-queries


On 12 Sep 2018, at 5:09 AM, 森建 <[hidden email]> 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
[hidden email]
https://mail.mozilla.org/listinfo/es-discuss


_______________________________________________
es-discuss mailing list
[hidden email]
https://mail.mozilla.org/listinfo/es-discuss
Reply | Threaded
Open this post in threaded view
|

Re: stable sort proposal

森建
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
> [hidden email] <mailto:[hidden email]>
>
>
>
>> On 12 Sep 2018, at 5:09 AM, 森建 <[hidden email] <mailto:[hidden email]>> 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
>> [hidden email]
>> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[hidden email]
https://mail.mozilla.org/listinfo/es-discuss