Is it possible to move swatches, sort or reorder them?
I'm looking to organize my Illustrator files a bit through scripting, and I'd like to be able to reorder swatches. I was hoping it was as simple as setting an index to an integer but it's not possible. The script I have loops through all document swatches and adds them to a Swatch Group, and I'm left with the patterns in the document, in whatever order they started.
A few ideas of how to accomplish if it's not as simple as changing the index:
Can I delete and readd the swatch to the panel?
Am I able to sort swatches via scripting? I searched through menu commands and it doesn't look like it's possible, but this would be an easy loop to organize.
