1 line, linq
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\npublic class Solution {\n    public int[][] AllCellsDistOrder(int Y, int X, int YY, int XX) {\n        return Enumerable.Range(0, X*Y).\n                    Select(x => (x / X, x % X, Math.Abs(YY - x / X) + Math.Abs(XX - x % X))).\n                    OrderBy(x=>x.Item3).Select(x=> new int[] {x.Item1, x.Item2}).ToArray();\n    }\n}\n```
['C#']