'How to call results of all participants in oTree

I am wrting codes in oTree 5. In my design, every participant in session has a specific result. At the end of the session, I want to sort the results of all participants in the session. I do not know how to do that? (I cannot put all aresults of all participants in an array to sort it).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source