Question for my HTML people

Situation:

Ajax tabs on top of page. Each tab is associated with independent
blogs. Anyone know how to make the blog with the latest content to be
the front-most tab automatically?

Please answer in the comments. Any ideas are welcome.