Using jQuery to sort data into tabs?

Using jQuery to sort data into tabs?

Is something like this possible? I have been trying to accomplish this all day, the only way I can come close is to write javascript functions to create the tabs, but the data has to be sorted all ready.

I basically have an XML file parsed into data tables, but I want these to be sorted into tabs.

I want a way to keep data sorted into tabs like this:

[2000] [2001] [2002] [2003]
[Jan] [Feb] [Mar]
** tables for Jan-2000 only

Is this possible? Been trying all day :(