Text this: Selective sorting of polymers with different terminal groups using metal-organic frameworks