fixed order of pub/priv ids