Can drop the `at` in this comment. Also, might be worthwhile to explain how you're determining if something is a first list element.

I could be wrong on this, but here's my shot at it:
`Lists are grouped by having the same `num_id` and `ilvl`. The first list item is the first list item found for each num_id and ilvl combination.`