sort by population desc, id asc