Skip to content

Conversation

@klensy
Copy link
Contributor

@klensy klensy commented Mar 4, 2021

Same as #847, but this time order seems work.

@klensy
Copy link
Contributor Author

klensy commented Mar 4, 2021

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort

If compareFunction(a, b) returns less than 0, leave a and b unchanged.
If compareFunction(a, b) returns 0, leave a and b unchanged with respect to each other, but sorted with respect to all different elements. Note: the ECMAScript standard only started guaranteeing this behavior in 2019, thus, older browsers may not respect this.

@Mark-Simulacrum Mark-Simulacrum merged commit 39f0244 into rust-lang:master Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants