Print: order attic and non-attic elements properly by id, without tags.