Making an array works, but you can also apply the array sort method directly to the jQuery object since it's array-like (has a length and [0]...[length-1] elements.
Array.prototype.sort.call( $('#ops-memb option'), function(a,b) { return $(a).text() > $(b).text() ? 1 : -1; } ).appendTo("#ops-memb"); The comparison function there wouldn't work right if two elements compare equal, but I assume there are not two identical options.