from typing import List


def sort_mode_autocomplete(ctx, args: List[str], incomplete: str):
    """
    Auto-complete choices for --sort-by / -s argument
    """

    entries = [
        ('seeders', 'Sort by number of torrent seeders (default)'),
        ('date', 'Sort by upload date'),
        ('size', 'Sort by file size'),
        ('comments', 'Sort by number of comments')
    ]

    return [c for c in entries if incomplete in c[0]]