how to reorder tabs in safari

is there a way to write a script that will reorder my tabs in safari?

for instance if I had 3 tabs open {Google, Facebook, Digg} and wanted to change the order of the tabs to {Facebook, Digg, Google}, is there a way to do this in applescript?


you can move tabs with e.g.

tell application "Safari"
	tell window 1 to move last tab to beginning of tabs
end tell