Sort options by weight