Sorting

Adds a game where you drag your friends into roles, for example BFF or Nemesis. Name two to six roles, or sort up to six pictures of your own instead.

Utilities & Storage

Asset stores, saved data, and the core building blocks behind bigger experiences.

Made with this block

Inputs

titlestring

The text displayed above the sorting interface. It should be short and concise, ideally no more than 20 characters. For example: "My Team".

sortingTypeint

Defines the sorting mode. Accepts only two values: - 0: Sorts friends - 1: Sorts custom items By default, the component uses friend sorting. Set to 1 only if custom item sorting is explicitly required.

roleNamesstring

An array of 2 to 6 strings representing the role labels displayed above the sorting cells. These names define the categories users will sort items into (e.g., "BFF", "CRUSH", "NEMESIS", "SIDEKICK"). Make sure to provide at least 2 and no more than 6 role names. By default, use 4 role names, unless the user explicitly requests a different number.

allowRetriesboolean

Defines whether the user can restart the sorting experience after assigning all roles. If true: The user will see a restart button and can reassign roles. If false: The experience ends after the initial sorting. Only set to true if the user explicitly asks to allow retries.

itemLabel1string

Label of the first custom item. Used only when sortingType is set to 1.

itemLabel2string

Label of the second custom item. Used only when sortingType is set to 1.

itemLabel3string

Label of the third custom item. Used only when sortingType is set to 1.

itemLabel4string

Label of the fourth custom item. Used only when sortingType is set to 1.

itemLabel5string

Label of the fifth custom item. Used only when sortingType is set to 1.

itemLabel6string

Label of the sixth custom item. Used only when sortingType is set to 1.

itemIcon1texture

Icon for the first custom item. Used only when sortingType is set to 1.

itemIcon2texture

Icon for the second custom item. Used only when sortingType is set to 1.

itemIcon3texture

Icon for the third custom item. Used only when sortingType is set to 1.

itemIcon4texture

Icon for the fourth custom item. Used only when sortingType is set to 1.

itemIcon5texture

Icon for the fifth custom item. Used only when sortingType is set to 1.

itemIcon6texture

Icon for the sixth custom item. Used only when sortingType is set to 1.

Events

onSortingStarted

A function called when the sorting has started, allowing the experience to respond to this event. Call it through .onQuizStarted.add(()=>{Your code here});

onSortingFinished

A function called when the sorting has finished ( when the user has assigned all roles), allowing the experience to respond to this event. Call it through .onSortingFinished.add(()=>{Your code here});

onRoleSet

A function called when a role has been assigned, allowing the experience to respond to this event. Call it through .onRoleSet.add(()=>{Your code here});