Second on earth

I’m second on earth but third in heaven, I’m never in cold but always in warm, I’m third in whale but last in sea. What am I?