For a game, I have a collection of 'houses' and each house belongs to a 'city'. I want to separate this collection (it's an array) based on this city, so each city will have its own array of houses. I found no built-in array function to do this (such as an For a game, I have a collection of 'houses' and