Helper utility for Algorithm::Networksort