Sort list of packages written to carton file.

This prevents trivial differences in carton files on different machines,
and makes merging easier when keeping the file under version control.
Merge pull request #4 from aecay/master

Sort list of package dependencies