Implemented the sort interface for a custom sort on versions

And used gofmt for reformatting the code :)