Pretty much as the title asked, is it possible to sort layers by fill color? I would like to sort by hue starting from darker colors to lighter colors.

  • 2
    Maybe with scripting, but there's nothing inherent in the app to do this.
    – Scott
    Aug 25, 2021 at 5:15
  • Well, normally the layers define the drawing order, so the situations where you would need this is really really small. You can definitely script this. And you should its one of those second or third try scripting jobs that have no value to others. (Mainly since objects can have multiple fills, or somebody has used a live paint object, group or clipping mask that in fact defies any logic you could come up with. So the tool needs to do several decisions only you can make, making it impossible for others to make this script for you)
    – joojaa
    Aug 25, 2021 at 14:33

1 Answer 1


No built-in layer auto-sorting of any kind.

All the layer sorting you can do in Illustrator by default is manually moving them around in the Layers panel.

  • I was thinking this is the case, thank you! Aug 25, 2021 at 6:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.