Python 3 lambda cannot take explicit tuple param
Python 3 lambda cannot take explicit tuple param

A lambda (or a normal function) can not take an explicit tuple as a parameter in Python 3.  Change the lambda to instead take a two tuple (k_and_v) as a single parameter which contains both a key and a value and then use only the value (k_and_v[1]) in the sorted() function.

This is the last issue blocking #6061
qqzwc/XX-Net,xyuanmu/XX-Net,qqzwc/XX-Net,xyuanmu/XX-Net,qqzwc/XX-Net,xyuanmu/XX-Net,zlsun/XX-Net,zlsun/XX-Net,zlsun/XX-Net,xyuanmu/XX-Net,xyuanmu/XX-Net,zlsun/XX-Net,zlsun/XX-Net,qqzwc/XX-Net,qqzwc/XX-Net