fixes line charts ordering bug