order objects in array by the order their keys occur in another array