changed line chart sorting