Re-order sphinx build flags