Which of the following is a function of the Golgi apparatus in a eukaryotic cell?

A) ATP synthesis
B) Protein synthesis
C) Lipid synthesis
D) Modification, sorting, and packaging of proteins
E) DNA replication

D) Modification, sorting, and packaging of proteins