Dynamic covalent polymers of different topology have been synthesized from an aromatic dialdehyde and α,ωdinitroalkanes via the nitroaldol reaction. All dinitroalkanes yielded dynamers with the dialdehyde, where the length of the dinitroalkane chain played a vital role in determining the structure of the final products. For longer dinitroalkanes, linear dynamers were produced, where the degree of polymerization reached a plateau at higher feed concentrations. In the reactions involving 1,4-dinitrobutane and 1,5-dinitropentane, specific macrocycles were formed through depolymerization of the linear chains, further driven by precipitation. At lower temperature, the same systemic selfsorting effect was also observed for the 1,6-dinitrohexanebased dynamers. Moreover, the dynamers showed a clear adaptive behavior, displaying depolymerization and rearrangement of the dynamer chains in response to alternative building blocks as external stimuli.