pb2, and util for sorting strings