Your Sort-Object is not broken. Your data type is.

New PoshBytes covers:
• Numeric strings vs real numbers
• Use expressions inside Sort-Object
• Keep your original data intact

https://youtube.com/shorts/1ZXM3XDo2-E

# PowerShell #Automation #Scripting #DevOps

PoshBytes: Why Is My Sort Order So Weird?

YouTube
@mdowst Check your data types, numeric strings don't sort like numbers.