s4/drs(tort): implement prefixMap comparison function