Fixes #1310: ActiveRelation does not preserve order of items on find via() and viaTable()