Your comments

I've been trying to figure how to do this, thanks for the snippet.

I would love to see this feature, because I don't use mouse too much, so it's more faster to move tabs using keyboard:

Ctrl + Shift + PgUp -> Move current tab to the left
Ctrl + Shift + PgDn -> Move current tab to the right