Sorting files while extracting translation messages from a twig templates
merged branch pauluz/master (PR #8304)

This PR was squashed before being merged into the master branch (closes #8304).

Discussion
----------

Sorting files while extracting translation messages from a twig templates

Hello
When we generate a translations via command:
```php
app\console translation:update
```
is nice if order of found items don't change over the time (inside the file).
So we need to sort the *.twig files to prevent changes in output lang files.

This very simple fix do this.

Please consider this in your code :)

Thanks

Commits
-------

ba0bcb1 Sorting files while extracting translation messages from a twig templates
Allow to get parent of BaseNode
merged branch Strate/strate/improvement/get-parent-of-node (PR #8302)

This PR was submitted for the 2.3 branch but it was merged into the master branch instead (closes #8302).

Discussion
----------

[Config] Allow to get parent of BaseNode

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no (improvement)
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Like an ArrayNode have method `getChildren`, I might to be good idea for having method `getParent` of all nodes.

Commits
-------

a9a7ecc [Config] Allow to get parent of BaseNode