In which order will packages used

I have own custom packages some of them have the same name but the are different.
But of course they are in different directorys:

src/gz lede_17.01.1_telephony   file:///mnt/sda1/repositories/lede-2017.05.31/releases/17.01.1/packages/mips_24kc/telephony
src/gz lede_custom1_telephony   file:///mnt/sda1/repositories/lede-2017.05.31/custom1/packages/mips_24kc/telephony

My question is now in which order will the packages be used inside the /etc/opkg/customfeeds.conf and /etc/opkg/distfeeds.conf ?

It is the same on the image builder ?