Rotate whole animation by 90 degrees
On the first frame add an empty at the same location as your object.  ShiftS > Cursor to Selected, then add the empty with ShiftA > Empty.   
Parent the object or objects to the new empty (CtrlP).  
Rotate the empty by 90° along the Z axis.