BUG: sort date index first before plotting #2609