Alphabetical Order Sorter
Sort your data alphabetically with support for text, CSV, arrays, and JSON formats.
📝 Input Text One item per line
✅ Sorted Output A → Z
📖 How to Use
📝 Text Lines
- • Enter each item on a separate line
- • Empty lines are automatically removed
- • Works with any text content
- • Supports numeric sorting (e.g., "item1", "item10", "item2" sorts correctly)
📊 CSV Data
- • Multiple rows: First row = headers, rest = data
- • Single row: Sorts values within that row
- • Select which column to sort by from dropdown
- • Handles quoted values with commas correctly
🔢 JSON Array
- • Must be valid JSON array syntax
- • Supports strings, numbers, booleans
- • Mixed types converted to strings for sorting
- • Use double quotes for strings
🗂️ JSON Objects
- • Array mode: Sort array elements
- • Object Keys: Sort by property names
- • Object Values: Sort by property values
- • For object arrays, specify property to sort by
💡 Examples & Use Cases
📝 Text Examples
Simple List
banana
apple
cherry
date → Sorts: apple, banana, cherry, date
Mixed Content
Task 10
Task 2
Task 1
Task 20 → Numeric sort: Task 1, Task 2, Task 10, Task 20
📊 CSV Examples
Employee Data (sort by name)
name,age,department
John,25,IT
Alice,30,HR
Bob,20,Sales → Select "name" column to sort by names
Single Row Values
"zebra","apple","banana" → Sorts values: "apple","banana","zebra"
🔢 Array Examples
String Array
["zebra", "apple", "banana"] → ["apple", "banana", "zebra"]
Mixed Types
[3, "apple", 1, "banana", 2] → [1, 2, 3, "apple", "banana"]
🗂️ JSON Examples
Array of Objects
Mode: Array, Sort by: "name"
[
{"name": "John", "age": 25},
{"name": "Alice", "age": 30}
]Object by Keys
Mode: Object Keys
{
"zebra": 1,
"apple": 2,
"banana": 3
}Object by Values
Mode: Object Values
{
"item1": "zebra",
"item2": "apple",
"item3": "banana"
}💡 Pro Tips
- • Real-time sorting: Results update as you type
- • Copy results: Use the Copy button to get sorted data
- • Switch order: Toggle Ascending/Descending anytime
- • Clear quickly: Use Clear button to reset
- • JSON validation: Invalid JSON shows error messages
- • CSV flexibility: Works with or without quotes