This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sort sheets in a Google spreadsheet. | |
Allows specifying first/last sheets as arrays of sheet names | |
Requires Apps Script runtime powered by Chrome V8 (not Rhino) | |
*/ | |
function sortSheets(){sortSheets_(first=[config.indexSheetName], last=["log"]);} | |
function sortSheets_ (first=[],last=[]) { | |
if(!Array.isArray(first)) throw "Parameter 'first' must be an array"; |