I have successfully created a relationship form between two posts. This is where a user can create their own lists to which they then can add words from the dictionary. I have successfully all working on the front-end.
The part I would like some guidance on is the select2 dropdown. See attached screen print, is there some custom code I can add that will put the list in ascending order and also allow me to state, how many words show in the list.
It also offers the orderby attribute. orderby. Optional. Can take the values of date, title or ID. ID is the default value. It will decide the order of the posts being offered in this role selector.
Regarding controlling the number of options, we do not any any API filter to change the number of options/posts displayed with select2 at the moment but we do already filed the feature request and I've added your voice to our internal ticket.