If you want to order by something other than 'alphabetical' what would you do
You'd have to amend the line
optbits.sort();
to be something more sophisticated. The array optbits is an array of strings which contain option description||option value. The sort method can be very powerful as you can use a function within it that does whatever you want (e.g. extract a price and use that). Google for JavaScript array sort for more information.
Comment