Fixed regression with stack order not being affected by series.index. Closes #2456.