supporting array.sort in ArrayObserver