1金币
最佳答案您好,sortRange中可以通过设置index的值来设置基准列,如:
sheet.sortRange(4, 0, 27, 5, true, [
{
index: 1,
ascending: true,
compareFunction: function (value1, value2) {
var str1 = value1.split(" ")[1], str2 = value2.split(" ")[1];
...
| |
| |