# Why “sorting” is needed for simple random sampling [closed]

Tutorials demonstrating simple random sampling, first list the full number of population members (i.e., sampling frame) in a column and then assign a random number from $$00$$ to $$11$$ from a uniform distribution to each.

Question: BUT WHY (as shown in this tutorials), before getting a sample (e.g., of $$n=40n = 40$$) from our sampling frame we must “sort” the sampling frame based on the random numbers for each population member? (What role does sorting etc. play?)