def sort_key_by_numeric_other(key_value):
 return tuple((((int(numeric) if numeric else None), (INSTANCE_SIZES.index(alpha) if (alpha in INSTANCE_SIZES) else alpha), other) for (numeric, alpha, other) in RE_NUMERIC_OTHER.findall(key_value[0])))

def sort_key_by_numeric_other ( key_value ) : return tuple ( ( ( ( int ( numeric ) if numeric else None ) , ( INSTANCE_SIZES . index ( alpha ) if ( alpha in INSTANCE_SIZES ) else alpha ) , other ) for ( numeric , alpha , other ) in RE_NUMERIC_OTHER . findall ( key_value [ 0 ] ) ) )
split key into numeric .