Sort rows based on some key field or fields. E.g.::

        >>> from petlx.push import sort, tocsv
        >>> p = sort('foo')
        >>> p.pipe(tocsv('sorted_by_foo.csv'))
        >>> p.push(sometable)

def sort(key=None, reverse=False, buffersize=None):
    """Sort rows based on some key field or fields. E.g.::

        >>> from petlx.push import sort, tocsv
        >>> p = sort('foo')
        >>> p.pipe(tocsv('sorted_by_foo.csv'))
        >>> p.push(sometable)

    """

    return SortComponent(key=key, reverse=reverse, buffersize=buffersize)