private static int Compare(ByteString b1, ByteString b2) { if (b1.IsEmpty) return b2.IsEmpty ? 0 : 2; return b2.IsEmpty ? 1 : 3; }