sorted dependencies corrctly on sample