Add cache nodes reordering functionality