The paths are included in the order local, community then core.

The autoloader will look for files in that order which is why local will override everything else and community will override core.