The easiest way is
Go to the workflow record in the wf_workflow table
Right click in the form header, go to 'Show File Properties'
Add the 'versions' related list to the form if it's not already there
Right click the version you want to revert to, click 'Revert to this Version'
Click 'Ok' on the dialog, and the workflow is reverted