As I’ve talked about before, editing and proofreading are two entirely different beasts. While proofreading is all about the nitty gritty, editing is about the theme and ‘flow’ of your writing. Editing always comes first.
While everyone has their own take on editing, and it also depends on what it is your editing, for major projects (e.g. an eBook) I stick to a two-stage editing process.