Order bits in a set by population count