We borrowed this from typing_data.js and gave it a slightly different name (sorted -> sorted_ids).
We now track our inbound timing events using code in typing_data.js. This code may be a little more robust with variations on how recipients are represented in events, although there are no known bugs here.
(A subsequent commit will actually integrate this into the app.)