Ordering portal ids

Portal ids are now ordered like the leds on the table. null means: the led is not used at the moment.