Sort-ClipText.ps1 reads the text in your clipboard, sorts it, and creates a new sorted item in your clipboard. Note that the split statement is a regular expression. The pipe character represents the logical OR. I also used splitstringoptions to remove the empty lines after sorting.
(Get-ClipBoardText).tostring().Split("`r`n|`r|`n",[System.StringSplitOptions]::RemoveEmptyEntries)