Dev edits first, then copy edits, and finally proofreading.
Ideally, you have different editors for each step of the process. I prefer the Chicago Manual of Style rather than the AP Stylebook to settle questions of grammar and usage, but either is acceptable.