Javascript – Custom sort order according to cell value (GAS)
Currently I sort my sheet via this function var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheet = ss.getSheetByName(a); var dataRange = sheet.getDataRange(); dataRange.sort([ {column: role, ascending: true}, {column: cases, ascending: false} ]); This sorts the by role first in alphabetical order. Is…