change ordering in angular directive to move element in the array