def sort_by_length_usearch61(seq_path,
                             output_dir=".",
                             minlen=64,
                             remove_usearch_logs=False,
                             HALT_EXEC=False,
                             output_fna_filepath=None,
                             log_name="length_sorted.log"):
    if not output_fna_filepath:
        _, output_fna_filepath = mkstemp(prefix='length_sorted', suffix='.fna')
    log_filepath = join(output_dir, log_name)
    params = {'--minseqlength': minlen,
              '--sortbylength': seq_path,
              '--output': output_fna_filepath
              }
    if not remove_usearch_logs:
        params['--log'] = log_filepath
    app = Usearch61(params, WorkingDir=output_dir, HALT_EXEC=HALT_EXEC)
    app_result = app()
    return output_fna_filepath, app_result