Sort the TOC in ArcMap alphabetically

I wanted to quickly create a kmz for a client which contained all of their asset data. It didn’t need to be in any order, but then I thought, why not alphabetical?

After trying out a few different ways, I decided to use an empty group layer as the anchor layer for sorting. One cannot add a group layer to the table of contents via Python, so unfortunately that step is a manual exercise.

This still beats manually moving dozens of layers up and down though 🙂

Advertisements

One thought on “Sort the TOC in ArcMap alphabetically

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s