Here "They" refers to those who are still alive after Yahweh devastates the earth.
"and those in the west towards the sea will shout with joy"