I see Jesus is speaking about 'the world' in contrast to those His sheep who are not of the world?I see Jesus called the world to oneness.
John 17:21-23 "That they may all be one, just as you, Father, are in me, and I in you, that they also may be in us, so that the world may believe that you have sent me. The glory that you have given me I have given to them, that they may be one even as we are one, I in them and you in me, that they may become perfectly one, so that the world may know that you sent me and loved them even as you loved me.."
Regards Tony
I see Jesus was not concerned with creating a perfect world on earth, but with the souls of people, bringing hope and comfort of a better world beyond -- especially to the hopeless and the lost.