Merge pull request #6696 from legoktm/sort-installed
Sort vendor/composer/installed.json deterministicallypull/6864/head
commit
b2f283cbd2
|
@ -83,6 +83,10 @@ class FilesystemRepository extends WritableArrayRepository
|
|||
$data[] = $dumper->dump($package);
|
||||
}
|
||||
|
||||
usort($data, function($a, $b) {
|
||||
return strcmp($a['name'], $b['name']);
|
||||
});
|
||||
|
||||
$this->file->write($data);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue