Fix ordering unique records by joined table
Use primary key for partitions list
Add isolation levels to transactions
Merge branch 'hotfix/4.0'

Conflicts:
	lib/arel/visitors/sqlserver.rb