The sgapiSetTableOrderByTable function allows the rows of a table question to be set based on a different table.
Is there a way to do the same thing for a Radio button or Checkbox question?
I have seen this article before (example for an image question):
Perhaps it’s something that can be repurposed for radio/checkbox questions? I have not seen a function in custom scripting that is similar to the table one that you referenced, so this might be the best bet.
Hope this helps!