[docs] [issue39210] Sorting falls back to use __gt__ when __lt__ is not present