Loading a script before another one
As long as Replace custom weights with dependencies in library declarations is not fixed, you have to use weights to control the priorities of JavaScript files.

 js:
   assets/js/GTMscripts.js: { weight: 10 }