Stabilize line ordering

We order by hit count, then by time.