1
0
Fork 0

Make sure lock file is sorted, fixes #276

pull/335/head
Jordi Boggiano 2012-02-20 12:35:03 +01:00
parent 8bdf4d8bcd
commit 9ba0505751
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ class Locker
$lock['packages'][] = $spec; $lock['packages'][] = $spec;
} }
usort($lock['packages'], function ($a, $b) {
return strcmp($a['package'], $b['package']);
});
$this->lockFile->write($lock); $this->lockFile->write($lock);
} }