# ترتيب الأسطر أبجديًا

> رتّب الأسطر أبجديًا أو عدديًا.

[Open tool](https://www.toolcabana.com/ar/sort-lines) · [النصوص والكتابة](https://www.toolcabana.com/ar/category/text-and-writing)

Tool ID: sort-lines. Requested language: ar. Description language: ar. 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 (ar)

رتّب الأسطر أبجديًا أو عدديًا.

## Steps (ar)

1. اكتب النص أو الصقه، أو حمّل مثالًا.
2. غيّر الإعدادات الأساسية أو افتح الوضع المتقدم لضبط النتيجة بدقة.
3. راجع النتيجة وانسخها أو نزّلها. أوقف النتائج المباشرة مؤقتًا للتشغيل اليدوي. يتطلب النص أو أي إعداد منفرد يتجاوز 20,000 محرف تشغيلًا صريحًا.

## Settings

- الترتيب العددي (ar; key: numeric; type: checkbox)
- الترتيب التنازلي (ar; key: descending; type: checkbox)
- مراعاة حالة الأحرف (ar; key: caseSensitive; type: checkbox)
- الترتيب الطبيعي (item2 قبل item10) (ar; key: natural; type: checkbox)
- تجاوز الأسطر الفارغة (ar; key: ignoreEmpty; type: checkbox)
- إزالة المسافات من طرفي الأسطر قبل ترتيبها (ar; key: trim; type: checkbox)

## Limitations (ar)

تقبل عمليات النص عادةً ما يصل إلى 2,000,000 محرف. تفرض أدوات التحليل والتوليد والصيغ الفردية حدودًا إضافية تظهر في عناصر التحكم الخاصة بها.

## Example input

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

## Privacy and connections (ar)

تعالج هذه العملية النص في متصفحك. يتطلب النسخ والتنزيل إجراءً صريحًا؛ ولا يُحفظ النص المدخل في حساب أو سجل.

## Questions (ar)

### 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/ar/deduplicate-lines)
- [Remove extra spaces](https://www.toolcabana.com/ar/remove-spaces)
- [Find and replace text](https://www.toolcabana.com/ar/replace-text)
- [Remove line breaks](https://www.toolcabana.com/ar/remove-line-breaks)
