Tuesday, August 10, 2010

Unique requires Sort (in PowerShell)

Reading the documentation would have told me this, but who has time for that these days?

Apparently "unique" isn't guaranteed to work without "sort", so any time you'd do this:
$list | unique
do this
$list | sort | unique

No comments: