Suppose that I have a hash in which the key/value pair is as follows:

```
Name  Scores
Bob 67 89 77 89
Kim 99 98 95 90
Dan 67 90 73 88
   . . .goes on

```

The keys are names and the values are test scores. Now the values refer to arrays. 

I understand that there is a sort function for a hash, but suppose that I want to find the median score for each student.

Final output:

```
Name Median 
Bob 83
( . . .and so on)

```

To find the median, I need to first place the scores in order of lowest to highest magnitude.  

Is there a sort function for hashes in which I can order the test scores for each student?

Thank you for any help.