fuck_u_spez@lemmy.fmhy.mltoProgrammer Humor@programming.dev•JavaScript always know my truest of desires
2·
1 year agoI couldn’t believe it, tried it out, what the actual heck? I mean I get all these weird string vs number comparison but sorting actual numbers and this comes out? What kind of drugs were the designers of javascript (or at least this function) on… Who thought it was a good idea to sort numbers lexicographically??
I guess I have to start calling function invocation with generic parameters, fancy names (like “dependency injection” ^^)