People are occasionally complaining that JavaScript’s import statement has it backwards. The syntax is:

import {foo, bar, baz} from'./my-module.js';

They argue that it should be:

from'./my-module.js'import {foo, bar, baz};

As an aside, that’s how Python does imports.

Why? It would make auto-expansion easier: You’d first type the module specifier './my-module.js' and then the entities {foo, bar, baz}. During the latter step, the IDE already as the context for helping you out.

The reasons for the different order in JavaScript are:

It’s the same order as variable declarations.

It’s the same order as using require() in Node.js modules.

Given that you write stuff once and read it many times, the focus should be on which version is easier to read. And there, I don’t see a clear winner.