The order of animation layers in the Animation Layer editor stack is important because it can affect how the result animation is calculated. See Result animation.
As you drag, a black line or a rectangular outline appears to indicate where the layer will be placed. If the layer will be placed between two layers, a single black line appears. If the layer will be parented, a rectangular outline displays around the layer that will become its parent.