sort by population working