When I use any of the variable functions to retrieve a list of local variables either from a list or collection (eg figma.variables.getLocalVariables()
or figma.variables.getLocalVariableCollections()
), the sort order of the list seems to be the order in which the variables were created. However, I would like sort order to reflect the order in the UI. Does anyone know a way around this or if it is indeed a bug/limitation?
Returning lists of color styles works as expected so this seems to be just a variables thing.