This loop and the setting of the **list.order**s could also be integrated into the single loop that reads the lists.