Array.Sort排序
function Sort () : Array
Description描述
Sorts all Array elements
排序所有元素。
var hello = new Array ("c", "a", "b");hello.Sort();print(hello);// 打印结果按字母顺序排列 a, b, c
var hello = new Array ("unity", "中国", "钓鱼岛","圣典","3D","人民","大家");hello.Sort();print(hello);// 打印结果为 3D,unity,中国,人民,圣典,大家,钓鱼岛,看样子数字排在最前面,字母紧随其后,其他语言垫底,貌似中文的排序是按照字母倒序