That which decides which of two comes first. A comparator encodes an ordering someone chose.
Latin comparare (to match, pair, compare), from com- (together) + par (equal); the agent noun for one who — or that which — sets things beside each other to judge their order.
That which decides which of two comes first, by a rule someone chose and fixed into it. The ordering it produces is never neutral, only consistent.