Core: Getting resources will now be ordered by rl.resource_id not just by rm.sort_order in case rm.sort_order is equal.