i have a problem whit a sort of a file txt
this is the file :
BATCH 2401194521820240808074247051230240100772170000101002076
BATCH 2401194537920240808081852050321240100183380000101002076
I need to sort by substring 23, 8
Get-Content -Path C:appoggio20240814_093042.TXT -Force |Sort-Object {Substring(29,2)} -Stable -Descending | Set-Content -Path C:appoggioprova.txt -Force
2