reordered lines based on popularity