You should not let the `sort` callback return a boolean (which never can be -1). You should return a number, that is negative when `a < b`.
– trincotDec 23 '19 at 16:18
3
Does this answer your question? [what's the 'sort' method's difference between chrome environment and node environment](https://stackoverflow.com/questions/56320307/whats-the-sort-methods-difference-between-chrome-environment-and-node-enviro)
– KlayconDec 23 '19 at 16:20