documentcloud/underscore — Issue #443: _.intersection bug
Author: orlin
Created: 2012-01-24 15:08:50+00:00
State: open

Try `_.intersect ['1', '10'], [ '10', '1' ] isnt _.intersect [ '10', '1' ], ['1', '10']` which would wrongly be `true`. The latter intersection returns just `[ '10' ]`.

If '1' were '01' it's all good. Something to do with sorting strings? However, I tried it with numbers (i.e. without quotes) and it fails all the same. Still something to do with the order, I suppose.