Sort the concatenated response and compare it to the answer
I'm not a JAVA script user, so I really need your help to code this out.
My task is to let people guess three numbers out of four (1, 2, 3, & 4).
However, the answer can be one of the permutations of these numbers, so I need to sort their response in numerical order and compare it to the answer to give them feedback (i.e., if they typed in 321, I should sort this into 123 and comparing it to the answer).
This is also related to my previous question on how to make receive three responses at a time. Thank you! https://forum.cogsci.nl/discussion/7816/can-i-show-keyboard-response-to-the-participant#latest