3 line solution | JS
Code\n\nvar minMovesToSeat = function(s, st) {\n    s.sort((a,b) => a-b);   \n    st.sort((a,b) => a-b);   \n    return s.reduce((ac, x, i) => ac + Math.abs(x -
# Code\n```\nvar minMovesToSeat = function(s, st) {\n    s.sort((a,b) => a-b);   \n    st.sort((a,b) => a-b);   \n    return s.reduce((ac, x, i) => ac + Math.abs(x - st[i]),0);\n};\n```
['Sorting', 'JavaScript']