function FromSort(left, right, asc) {
if (left.属性1 != "") {
if (right.属性1 != "") {
return left.属性1 == right.属性1 ? 0 : (left.属性1.localeCompare(right.属性1) < 0 ? -asc : asc);
} else {
return -1;
}
} else {
if (right.属性1 != "") {
return 1;
} else {
return left.属性2 == right.属性2 ? 0 : (left.属性2.localeCompare(right.属性2) < 0 ? -asc : asc);
}
}
}