Improve resource ordering