Re-order so to shorten detached time of entities.