Towards Self-sorting Materials using Hydrogen Bonding Motifs