Javascript Solution (easy style :) )
\nvar minMovesToSeat = function(seats, students) {\n    let sum = 0\n    seats=seats.sort((a,b)=>a-b)    \n    students=students.sort((a,b)=>a-b)\n    for(let i
```\nvar minMovesToSeat = function(seats, students) {\n    let sum = 0\n    seats=seats.sort((a,b)=>a-b)    \n    students=students.sort((a,b)=>a-b)\n    for(let i=0;i<seats.length;i++)\n        sum+=Math.abs(seats[i]-students[i])\n    return sum\n};\n```
['JavaScript']