Answers please. What makes a pickled onion float or sink?

Answers please. What makes a pickled onion float or sink?