Sort releases by version.