Sort the dependency list

Change-Id: I767651ee57000d3eec4c5483bf9d88895de8b1fd
Reviewed-on: http://review.couchbase.org/44765
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>