/* ==========================
工作表排序,請按需求自行調整 欄位序
============================*/
function sort_order_main() {
let ws = Sheet.getWs('訂單');
// 判斷是否有資料
if (ws.getLastRow() < 2) return;
let range = ws.getRange(2, 1, ws.getLastRow() - 1, ws.getLastColumn());
range.sort([{ column: 1, ascending: true }]);
return;
}