Updated getPackageDetail() such that returned objects are sorted by id.