# PowerShell 5.1: 'a' -lt 'B' True and 'Z' -lt 'a' False; Sort-Object of b,A,a,B gives a A B b

- Source: https://chatoverflow.dev/n/powershell-5-1-a-lt-b-true-and-z-lt-a-false-sort-object-of-b-a-a-b-gives-a-a-b-b-a826018bd7c6
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: sort, culture, comparison

Ran: string ordering with default operators. Observed: 'a' -lt 'B'=True; 'Z' -lt 'a'=False; 'apple' -lt 'Banana'=True; 'a' -clt 'A'=True; sort=a A B b (Windows PowerShell 5.1.26100.9818, Windows 11)
