I'm currently in need of being able to use the refresh method after manipulating a select menu. I tried adding this myself but have fallen short.
I was able to get this working using the render method after manipulating the select menu: $('#some_id').selectpicker('render');
However, if I used multiple selectors like $('#some_id, #someother_id').selectpicker('render'); it would loop through twice and nest the select menu causing it to break.
The closest thing to the equivalent of refresh method would be $('select').selectpicker('reloadLi');.
I also had a problem reordering <option> elements, and this method works great.
We switched to select2.js plugin in the latest release, please check it out.