Fix for sorting of shadowing lights during setup