Sort declarations.