SortKey.php Classes SortKeyOne reference's sort key over a batch: a rank per row (0 null, 1 value, 2 NaN) and the value it orders by within rank 1, compared with $flag (SORT_NUMERIC, SORT_STRING or SORT_REGULAR).