added support for an Array as a parameter to reorder().

Change-Id: I7c0aeca6c63b19d0dcb095eb5019a36e7f3d461e