Response title
This is preview!
The same applies, it seems, to `$.fn.andSelf()`.So in jQuery 1.4.1 `.add()` returns a sorted collection ... except when it doesn't.
Actually, I'd prefer if jQuery didn't question my motives too much, thank you. :-)Good point about `jQuery(arrayOfElements)` not being sorted [...] that could definitely be something that we enforce.
If we go down this philosophical route, pretty much everything is aribtrary and shouldn't be relied on.I'm not sure what made the *old* sort order anything other than arbitrary,
Actually, if you read the souce,
jQuery is a beautifully designed library, developed to be used by hundreds of thousands of developers - so backwards compatibility is a huge thing for a library like that, and should be assumed by default.You think jQuery would still be so beautiful and useful if backwards compatibility was managed all time? Sometimes little things have to be broken to improve the overall quality.
© 2013 jQuery Foundation
Sponsored by and others.