It depends what you mean with "first" and "last". It does not matter where you connect shelf physically. But you cannot change assigned shelf number without power cycle which means your physical shelf order won't match logical one. From technical perspective everything will continue to work just fine. But someone who assumes shelf 10 is the "first" one may accidentally unplug the wrong cable.