Summery

sort is a command-line utility that sorts lines of text. Commonly used during enumeration to organize usernames, domains, ports, paths, and scan results.

Common usage

sudo sort -u springboot.txt -o springboot.txt - Remove duplicate lines from a file

sort file.txt - Sort lines alphabetically
sort -n file.txt - Sort numerically
sort -r file.txt - Reverse the sort order
sort -u file.txt - Sort and remove duplicate lines
sort -t: -k3n file.txt - Sort colon-separated data by the third field numerically
sort file.txt | uniq -c - Count adjacent duplicate lines after sorting

References

sort manual