invocation ids used to be integers that we could sort by to get chronological order, but now they're strings. instead, store the numerical identifier in a separate field and sort by that