What is the order in which jobs (micro-tasks) is executed in an event loop of js?

the following code needs to be executed in the node environment

console.log("glob1");

new Promise(function(resolve) {
    console.log("glob1_promise");
    resolve();
}).then(function() {
    console.log("glob1_then")
})
new Promise(function(resolve) {
    console.log("glob2_promise");
    resolve();
}).then(function() {
    console.log("glob2_then")
})

process.nextTick(function() {
    console.log("glob1_nextTick");
})
process.nextTick(function() {
    console.log("glob2_nextTick");
})

the following is what I print in node:
glob1
glob1_promise
glob2_promise
glob1_nextTick
glob2_nextTick
glob1_then
glob2_then

I would like to ask why the jobs in .then () prints later than the jobs in .nextTick ()? What is the order of execution between them?

Mar.29,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b390-2c27f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b390-2c27f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?