Single line solution python
Return list first created by generator statement then sorted using lambda function as key\n\n# Code\npython3 []\nclass Solution:\n    def allCellsDistOrder(self
Return list first created by generator statement then sorted using lambda function as key\n\n# Code\n```python3 []\nclass Solution:\n    def allCellsDistOrder(self, rows: int, cols: int, rCenter: int, cCenter: int) -> List[List[int]]:\n        return sorted([[i, j] for i in range(rows) for j in range(cols) ], key = lambda s: abs(s[0]-rCenter)+abs(s[1]-cCenter))\n```
['Python3']