Skip to content

xgt

Excel-style greater-than (text-aware ordering).

c = xgt(A, B)

Excel-mode > comparison with text-and-number ordering rules: numbers come before logicals which come before text in Excel’s sort order, even when comparing across types.

  • gt — Element-wise greater-than test (function form of >).
  • xge — Excel-style greater-than-or-equal.
  • xlt — Excel-style less-than.