What is the ideal order to place components on a rack?

Should the amp be far away from the pre pro or not really?