Add sort in the last chart