Add ordering to population api