Sort-Object by greatest numerical value value from Import-CSV
I want the greatest value (mailboxSize) at the top of the file. I have a cvs as inport. When I do the following sort cmd: Import-Csv import.csv| Sort-Object MailboxSize,DisplayName -Descending | Export-Csv SORT.csv I get the following result: "DisplayName","MailboxSize" "persone6","9941" "persone3","8484" "persone1","7008" "persone4","4322" "persone5","3106" "persone7","27536" "persone10","24253" "persone8","1961" "persone9","17076" "persone11","17012" "persone2","15351" "persone12","11795" "persone14","1156" "persone13","1008" But I want this as a result! "persone7","27536" "persone10","24253