Skip to content

Instantly share code, notes, and snippets.

@vladocar
vladocar / layersOrder.js
Created January 17, 2012 21:08
Order Layers Alphabetically in Photoshop
var layers = activeDocument.layers;
var layersArray = [];
var len = layers.length;
// store all layers in an array
for (var i = 0; i < len; i++) {
layersArray.push(layers[i]);
}