Forum Discussion
BruceMc
Mar 27, 2017Explorer III
In a cmd window: sort or sort /r for reverse sort:
Original file:
a
c
r
b
l
j
C:\Users\Administrator\Desktop>sort /r file.txt
r
l
j
c
b
a
C:\Users\Administrator\Desktop>sort file.txt
a
b
c
j
l
r
Select the output & copy it into a new file, or redirect the output to another file:
C:\Users\Administrator\Desktop>sort file.txt > file2.txt
--Bruce.
Original file:
a
c
r
b
l
j
C:\Users\Administrator\Desktop>sort /r file.txt
r
l
j
c
b
a
C:\Users\Administrator\Desktop>sort file.txt
a
b
c
j
l
r
Select the output & copy it into a new file, or redirect the output to another file:
C:\Users\Administrator\Desktop>sort file.txt > file2.txt
--Bruce.
About RV Must Haves
Have a product you cannot live without? Share it with the community!8,804 PostsLatest Activity: Jan 05, 2026