Fix static error with sort_rows_by_domain_length