me/lib.py
def sorted_return(*a, **sorted_kwargs):
    """ Decorator with optional arguments that sorts output of
    decorated function.
    """
    def _sorted_return(fn):
        @wraps(fn)
        def decorated(*args, **kwargs):
            res = fn(*args, **kwargs)
            return sorted(res, **sorted_kwargs)
        return decorated
    if len(a) == 1 and callable(a[0]):
        return _sorted_return(a[0])
    return _sorted_return
 Decorator with optional arguments that sorts output of
    decorated function.
    
Decorator with optional arguments that sorts output of
decorated function.
Decorator with optional arguments that sorts output of decorated function .
def sorted_return(*a, **sorted_kwargs):
    def _sorted_return(fn):
        @wraps(fn)
        def decorated(*args, **kwargs):
            res = fn(*args, **kwargs)
            return sorted(res, **sorted_kwargs)
        return decorated
    if len(a) == 1 and callable(a[0]):
        return _sorted_return(a[0])
    return _sorted_return
def sorted_return ( * a , ** sorted_kwargs ) : def _sorted_return ( fn ) : @ wraps ( fn ) def decorated ( * args , ** kwargs ) : res = fn ( * args , ** kwargs ) return sorted ( res , ** sorted_kwargs ) return decorated if len ( a ) == 1 and callable ( a [ 0 ] ) : return _sorted_return ( a [ 0 ] ) return _sorted_return
Decorator with optional arguments that sorts output of
decorated function.
Decorator with optional arguments that sorts output of decorated function .
""" Decorator with optional arguments that sorts output of
    decorated function.
    """