Sort by key for the elements.
Merge pull request #166 from jordandukart/7.x-LIB-35-ISLANDORA-923

Sort by key for the elements.