You have ‘Align Rotation to Target’ enabled, which is a good thing usually, but in your case your target Vertex is rotated (see orange line). Two possible solutions are:
use these Settings:
Or hide your profiled ‘sideboards’ (H, or the eye icon in the Outliner).
The direction of your Array is unimportant with these methods.