[ELF] Fix Atoms in the same file had overlapping ordinals.

This also reverts the LayoutPass to use std::sort as all files
have an ordinal now.