<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sorted_maybe_numeric(x):
 """ Sorts x with numeric semantics if all keys are nonnegative integers. Otherwise uses standard string sorting. """

    all_numeric = all(map(str.isdigit, x))
    if all_numeric:
        return sorted(x, key=int)
    else:
        return sorted(x)