Skip to main content
rzmota
Apr 21, 2021 11:47 AM UTC

Sort variants alphabetically (ascending/descending)

Hi,

Is there any option to automatically sort the items/components in the variants menu? Seems like I can drag them and drop but while having lots of elements it’s quite hard to keep things in the correct order.

I know there are plugins to sort items in the layers menu (like SortIt) but would be great if there is an option to make the same (A->Z, Z->A) for the variants.

It will make life easier.

Kapture 2021-04-21 at 13.42.37

49 replies

Stephane_Popout
May 23, 2023 5:05 PM UTC

here a gif below
At the beginning the variant “aaa” is at the end
After changing 3 times the variant name → “aaa” is back at the top

Remarks:

  • You really have to change it in a row (2 or 3 times if it did not work)
  • The sorting is case sensitive → this is why Default stayed first before “aaa”
    • So have a lowercase or uppercase for all your variants name

Order variants alphabetically

May 29, 2023 8:25 AM UTC

Hi guys,
I wanted to let you know that I created a plugin that works with the solution @Stephane_Popout suggested. I hope it can help you!

Figma
Rebekka_Karrengarn
Oct 24, 2023 11:12 AM UTC

genius work-around

Ryan_Brodie
Feb 27, 2024 12:22 PM UTC

This is the answer! ❤️

Thank you thank you thank you

Mikel_Rosenthal
Mar 29, 2024 2:43 PM UTC

YES!!! I just selected all the instances. Renamed them all to have “_2” at the end. Then named them back by removing the “_2” and BOOM. Instances show up in alphabetical order now. I did use SortIt Plug to do the main organization first so they viewed in order in your library as well. THANK YOU STEPHANE! It took me seconds to fix this with this work around.

Stephane_Popout
May 1, 2024 4:22 AM UTC

Happy to know it worked 🎉

Stephane_Popout
May 1, 2024 4:23 AM UTC

Well done Mikel 🤗🎉

Michal_Seps
Oct 25, 2024 11:49 AM UTC

Holy crapmoly this is genius. Nice!

Eli_Fares
New Member
Apr 24, 2025 7:39 PM UTC

+1
Having a large list of variants in one component is pain to click and drag the order. Would love it if we can auto-sort them in ascending alphabetical order.