I don't think tile grids were designed to add resolutions, because all tileCoords that rely on the tile grid will be invalid then.

But I'd be happy to change the sort to binaryInsert in the existing code. I wouldn't worry too much about garbage - this tile grid replacement only happens 20 times per map or so. If you are concerned about this, I'll add a `TODO: Make tile grid resolutions dynamic` and wait for a pull request to do everything a tile grid needs to support growing its resolutions array.