order resources by calendar position if supplied but revert to order by id