I'm trying to sort two arrays in php. One is full of strings and another integers. What I want to do is sort the integers by numeric order and then sort the strings the exact same way as integers. The reason it needs to be so perfect us because the first array is a set of usernames, the second is a set of scores, so they correspond like this: $firstarray is the name for $secondarray. I'm trying to sort out the scores by numeric order. Any suggestions for how to do this? Any advice is greatly appreciated!