brianreavis/selectize.js — pull request #295 by erlingur (2014-02-19 09:09:17+00:00)
Title: If array is passed into addOption then respect the insert order

Here is a jsFiddle demonstrating the problem: http://jsfiddle.net/8H62B/6/

I'm not a great Javascript programmer so if I did something wrong please feel free to point it out.

When addOption is given an array I would like it if it would respect the order of the array. We already have an $order property on the option so I just fill that in with the appropriate value.

I wasn't sure what files I should change so I just changed everything except the minimized versions. Any thoughts?