Parallel sort contracts.

@bsoetaer