Just in case anyone is trying to figure this out. Most of the sort() functions seem to sort values by the numbers first. In some scripts I need to sort an array of elementary school grades (1, K5, 4, 7, K4, 3) and so on. Typically one would want to see the Kindergarten grades first in the list rather than at the end which is what most of the sort functions seem to end up with.
The RTE development method (Rapid Trial & Error) lead me to:
sort($gradez, SORT_NUMERIC);
This seems to do the trick.