Code style
Use `import` for ES6 modules
Port sorter to ES6