public static function sortFunc1(field:String):Function{    return function(obj1:Object, obj2:Object):uint{        return ObjectUtil.numericCompare(Number((obj1[field.split(".")[0]] as Object)[field.split(".")[1]]),Number((obj2[field.split(".")[0]] as Object)[field.split(".")[1]]));    }}public static function sortFunc2(field:String):Function{    return function(obj1:Object, obj2:Object):uint{        return ObjectUtil.stringCompare(obj1[field],obj2[field]);    }}

参考地址: