import operator
a_list_of_dicts.sort(key=operator.itemgetter('name'))
'ключ' привык к виду произвольным значением, и 'itemgetter' устанавливает то значение к атрибуту 'имени' каждого объекта.
экспресс index.js
var = требует ('выражают'); приложение var = экспресс (); app.use (express.static (__ dirname + '/public'));
app.get('/', function(req, res) {
res.render('index.html');
});
app.listen(3400, () => {
console.log('Server is running at port 3400');
})
Помещенный Ваш файл index.html в общедоступную папку
<!DOCTYPE html>
<html>
<head>
<title>Render index html file</title>
</head>
<body>
<h1> I am from public/index.html </h1>
</body>
</html>
Теперь выполняет следующий код в Вашем узле index.js
терминала