---
title: "What I'm Learning: How to automatically sort sheets in a Google Spreadsheet Alphabetically"
date: 2015-06-08
url: https://learningischange.com/2015/06/08/what-im-learning-how-to-automatically-sort-sheets-in-a-google-spreadsheet-alphabetically/
author: Ben Wilkoff
categories: ["Blog", "What I’m Learning", "What I’m Using"]
tags: []
---

# What I'm Learning: How to automatically sort sheets in a Google Spreadsheet Alphabetically

I love it when someone else figures these kinds of things out and then shares them.

> function sortSheets () { var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheetNameArray = []; var sheets = ss.getSheets(); for (var i = 0; i Source: *[Re: Sorting (alphabetically or chronologically) “tabs” at the bottom of a SHEET – Google Product Forums](https://productforums.google.com/forum/#!topic/docs/eP7kHR6L7ZI/discussion)*
