I was getting some error while trying to compile my document and after a lot of searching, I found out the [solution] (though not the reason) - while using both packages apacite and hyperref, I must put \usepackage{hyperref} before \usepackage{apacite}.
My question is: how to know in which order I should include the packages? Is there some generic list/ rule of thumb about some common packages?
Also, why the order of packages matter for latex?
apaciteandhyperrefis here: Which packages should be loaded afterhyperrefinstead of before? – Werner Apr 05 '18 at 04:47