Page 1 of 1

SORT supports the /UNIQUE and /CASE_SENSITIVE options!

Posted: 23 Jan 2021 14:01
by dbenham
As I just learned at viewtopic.php?f=3&t=9923&p=63727#p63726, SORT supports the /UNIQUE option, at least on Windows 10 :!: :D

The built in help makes no mention of it, so it is no wonder that I've never seen this behavior before.

Has anyone ever run across this option before, or seen it documented by Microsoft anywhere? What Windows version did it become available?


Dave Benham

Re: SORT supports the /UNIQUE option!

Posted: 23 Jan 2021 14:18
by ShadowThief
I could have sworn that we already had a thread about this and I learned about it from that. Naturally, I can't check because search is currently broken. :roll:

It got added with Windows 10 (https://stackoverflow.com/a/50314929/4158862), but it seems that Microsoft forgot to document it.

Re: SORT supports the /UNIQUE option!

Posted: 23 Jan 2021 14:27
by aGerman
SS64 lists it as being available on Win 10. However, I never noticed it. Shame on Microsoft that they didn't even document such a helpful feature :(
https://ss64.com/nt/sort.html

Steffen

Re: SORT supports the /UNIQUE option!

Posted: 23 Jan 2021 14:35
by dbenham
Ooh, good for SS64.

So /UNIQUE can be abbreviated as /UNIQ

Also on SS64 is the undocumented /UNI-OUTPUT (or /U) that outputs in unicode (UTF16), available since Win 7. I did not know about that one either, though it is not of much interest to me.


Dave Benham

Re: SORT supports the /UNIQUE option!

Posted: 23 Jan 2021 14:42
by dbenham
And also on SS64, the /C (/CASE_SENSITIVE) option, again available since Win 7 - Now that is useful :!: :D

Re: SORT supports the /UNIQUE option!

Posted: 23 Jan 2021 19:20
by Eureka!
ShadowThief wrote:
23 Jan 2021 14:18
I could have sworn that we already had a thread about this and I learned about it from that.
There was. This was the first time I heard about it (thanks to @penpen), but undoubtedly there were earlier mentions of it.