---
title: "Discussion on \"Cheatsheet & Examples: sort\" | Hashnode"
description: "Discussion on \"Cheatsheet & Examples: sort\". The sort command is used to sort lines of text files in alphabetical, numerical, or other specified orders. It can also handle unique entries, reverse sorting, and field-based sorting.\nSorting a file alphabetically\nExample Usage:sort filename.txt  \nW..."
url: "https://hashnode.com/posts/cheatsheet-examples-sort/68fac1cd6a2351b742054f73"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cheatsheet & Examples: sort](https://tech.mrleong.net/cheatsheet-examples-sort?utm_source=hashnode&utm_medium=feed)

The sort command is used to sort lines of text files in alphabetical, numerical, or other specified orders. It can also handle unique entries, reverse sorting, and field-based sorting. Sorting a file alphabetically Example Usage:sort filename.txt W...

Oct 24, 2025 · 3 min read · tech.mrleong.net  
Read the article

-   [#cheatsheet](https://hashnode.com/tag/cheatsheet)
-   [#cli](https://hashnode.com/tag/cli)
-   [#sort](https://hashnode.com/tag/sort)

## Written by

[Hong](https://hashnode.com/@hongster)

@hongster · Johor Bahru, Malaysia

  
[View profile](https://hashnode.com/@hongster)

Script Monkey @ Innoractive

I work with Linux in the day, ballroom dancing at night. I use Arch, btw.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
