# مرتب‌سازی الفبایی سطرها

> سطرها را به ترتیب الفبایی یا عددی مرتب کنید.

[Open tool](https://www.toolcabana.com/fa/sort-lines) · [متن و نوشتن](https://www.toolcabana.com/fa/category/text-and-writing)

Tool ID: sort-lines. Requested language: fa. Description language: fa. Complete guide translation: yes.

## Overview (en)

Sort Lines Alphabetically puts each line of your list in A to Z order, or Z to A with Descending order. Sorting is language-aware and ignores case by default. Advanced options add natural ordering so item2 comes before item10, plus trimming line edges and skipping empty lines, and a numeric mode sorts lists of plain numbers by value.

## Supported tasks (fa)

سطرها را به ترتیب الفبایی یا عددی مرتب کنید.

## Steps (fa)

1. متن خود را بنویسید یا جای‌گذاری کنید، یا یک نمونه بارگذاری کنید.
2. تنظیمات پایه را تغییر دهید یا برای تنظیم دقیق نتیجه، حالت پیشرفته را باز کنید.
3. نتیجه را بررسی و کپی یا دانلود کنید. برای اجرای دستی، نتایج زنده را متوقف کنید. متن ورودی یا هر تنظیمی با بیش از 20,000 نویسه به اجرای صریح نیاز دارد.

## Settings

- مرتب‌سازی عددی (fa; key: numeric; type: checkbox)
- ترتیب نزولی (fa; key: descending; type: checkbox)
- تطبیق بزرگی و کوچکی حروف (fa; key: caseSensitive; type: checkbox)
- ترتیب طبیعی (item2 پیش از item10) (fa; key: natural; type: checkbox)
- رد کردن سطرهای خالی (fa; key: ignoreEmpty; type: checkbox)
- حذف فاصله‌های ابتدا و انتهای سطرها پیش از مرتب‌سازی (fa; key: trim; type: checkbox)

## Limitations (fa)

عملیات متنی معمولاً تا 2,000,000 نویسه را می‌پذیرند. تجزیه‌گرها، تولیدکننده‌ها و فرمول‌های مختلف محدودیت‌های بیشتری دارند که در کنترل‌های آن‌ها نمایش داده می‌شود.

## Example input

```text
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.
```

## Privacy and connections (fa)

این عملیات، متن ورودی را در مرورگر شما پردازش می‌کند. کپی و دانلود فقط با اقدام شما انجام می‌شوند؛ متن ورودی در حساب یا سابقه ذخیره نمی‌شود.

## Questions (fa)

### How do I sort lines so item10 comes after item9?

Enable Natural ordering in Advanced mode. Digits inside each line are then compared by numeric value, so item2 sorts before item10 instead of after it. This works for lines that mix text and numbers.

### Why does numeric sorting show an error?

Numeric sorting requires every line to be a number written with a dot as the decimal separator. A blank line, a unit or a comma triggers an error naming the line number; enable Skip empty lines or use natural ordering for mixed lines.

### Does sorting treat uppercase and lowercase letters the same?

Yes, by default. Lines are compared by base letters, so case and accents do not affect the order. Turn on Match case to let case and accent differences count when two lines otherwise compare as equal.

### متن ورودی من کجا پردازش می‌شود؟

این عملیات، متن ورودی را در مرورگر شما پردازش می‌کند. کپی و دانلود فقط با اقدام شما انجام می‌شوند؛ متن ورودی در حساب یا سابقه ذخیره نمی‌شود.

### محدودیت‌های ورودی چیست؟

عملیات متنی معمولاً تا 2,000,000 نویسه را می‌پذیرند. تجزیه‌گرها، تولیدکننده‌ها و فرمول‌های مختلف محدودیت‌های بیشتری دارند که در کنترل‌های آن‌ها نمایش داده می‌شود.

## Related tools

- [Remove duplicate lines](https://www.toolcabana.com/fa/deduplicate-lines)
- [Remove extra spaces](https://www.toolcabana.com/fa/remove-spaces)
- [Find and replace text](https://www.toolcabana.com/fa/replace-text)
- [Remove line breaks](https://www.toolcabana.com/fa/remove-line-breaks)
