@task_filter(protocol='sort', batch=True)
def sort_by_name(keyword, tasks):
 return sorted(tasks, key=(lambda x: x['name']))

@ task_filter ( protocol = 'sort' , batch = True ) def sort_by_name ( keyword , tasks ) : return sorted ( tasks , key = ( lambda x : x [ 'name' ] ) )
example: lx list sort: lx download 0/sort:/[0-1] .