diff --git a/src/Console/Command/YamlTrait.php b/src/Console/Command/YamlTrait.php index f84f988..ad5fa99 100644 --- a/src/Console/Command/YamlTrait.php +++ b/src/Console/Command/YamlTrait.php @@ -54,6 +54,8 @@ protected function writeYaml(string $yml_file, OutputInterface $output) { * Helper to adjust contributions data member before dump. */ protected function prepareContributions() { + // Sort projects by identifier. + ksort($this->contributions['projects']); // Sort people by identifier. ksort($this->contributions['people']); // Sort contributions by start date.