I don't think the world will "end" in the sense of it being completely destroyed. It'll probably happen like it happened before. Giant rock crashes into it, maknind slowly dies off, the cycle begins again. It is quite possible however that we will ruin the earth before something that catastrophic happens, with pollution, war, etc. It's possible we will turn it into an unlivable place on our own.