let of_chr_lists l = let ans = List.map ~f:(fun (a,l) -> List.map ~f:(fun (b,c) -> a,b,c) l) l in let ans = List.concat ans in List.sort ~cmp:cmpsi ans