added ordering to resources