Sort imports.
Use default legislation when legislation_url is missing.