@Mempo has you covered.
Edit: Also, this is the most popular (as far as I’m aware) reorder userscript.