From 02dfaec617b2630c0922410ba79187525026a1e8 Mon Sep 17 00:00:00 2001 From: Marco Villegas Date: Wed, 22 Nov 2023 22:19:48 -0500 Subject: [PATCH] Also sort projects just before saving them --- src/Console/Command/YamlTrait.php | 2 ++ 1 file changed, 2 insertions(+) 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.