ollyyllo Posted September 29, 2017 Posted September 29, 2017 If you do Get-Process | Sort-Object PM Power shell outputs the list correctly sorted by pagable memory Also if you pipe this to the gridview Get-Process | Sort-Object PM | Out-Gridview It displays as it should, but if you then sort for ascending\descending by selecting the column of PM(K) it doesn't sort it numerically? 'Handles' and 'Id' sort numerically but everythig else sorts as a string. Is this a bug in the Powershell GridView or can anyone tell me why GridView displays this way?
mrwoberts Posted September 29, 2017 Posted September 29, 2017 (edited) I'm confused.com.... mine outputs as expected (sorted by PM) in gridview Windows 10 Pro 1703 (fully updated) EDIT: Should have read your post a few times before replying. I didn't try clicking on the column heading to re-sort ASC/DESC. Same problem here, it seems to sort them by the first digit, rather than the whole number. Edited September 29, 2017 by mrwoberts I'm an idiot 1
Arthur Posted September 29, 2017 Posted September 29, 2017 (edited) Strangely the sorting works properly (in Out-GridView) with this command... Get-Process | Select-Object -Property Name, WS, PM, PeakWorkingSet | Sort-Object -Property PM -Descending | Out-GridView Edited September 29, 2017 by Arthur 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now