Make the resources order by weight, in addition to resource types.