Simple & Easy Solution by Python 3
\nclass Solution:\n    def allCellsDistOrder(self, R: int, C: int, r0: int, c0: int) -> List[List[int]]:\n        cells = [[i, j] for i in range(R) for j in ran
```\nclass Solution:\n    def allCellsDistOrder(self, R: int, C: int, r0: int, c0: int) -> List[List[int]]:\n        cells = [[i, j] for i in range(R) for j in range(C)]\n        return sorted(cells, key=lambda p: abs(p[0] - r0) + abs(p[1] - c0))\n```
['Python3']