Today I Learned

tags


2021/10/04

that different versions of sort(1) have different sorting presets. For example, on ubuntu 20.04 vs debian buster, sort will swap the order of how it sorts _s. These differences can be resolved by passing --unique --dictionary-order --stable.

Bonus: -h/--human-numeric-sort can sort SI suffixes.