def _sort_torrents(ctx, torrent_list, sort_type):
    """ Sorts torrents by a specific sort pattern.

    :param click.Context ctx: The calling clicks current context
    :param torrent_list: A list of torrent items to sort
    :type torrent_list: List[torvend.items.Torrent]
    :param str sort_type: The type of sort to perform
    :returns: A sorted torrent item list
    :rtype: List[torvend.items.Torrent]
    """
    if sort_type == 'seeders':
        return sorted(torrent_list, key=lambda t: t['seeders'], reverse=True)
