Mark lt as inline in PartialOrd

Fixes issue #18090