Changed to find by id instead of using .first and .last

https://github.com/ManageIQ/manageiq/issues/200

Do the ids need to be sorted for consistency or does it matter?