[Chaining] - Very Short Code

```javascript []
const allCellsDistOrder = (r, c, x, y, m = Math.abs) => 
  Array(r).fill(0)
    .map((_, i) => Array(c).fill().map((_, j) => [i, j] )).flat()
    .sort(([i, j], [a, b]) => m(j-y) + m(i-x) - m(b-y) - m(a-x));

```
['JavaScript']