The order of WeChat Mini Programs function execution

I customize two functions in WeChat Mini Programs, one is to get the location, the other is to get the weather,
in Page

Page({
    onLoad:function(){
        this.getLocalCity();
        this.getWeather();
    }
})

is called on onLoad, but no matter how I write the, getWeather () function, it always executes first. Why?

description:
getWeather uses wx.request () API,getLocalCity is followed by wx.getLoaction (), followed by Gaode Mini Program SDK.
ask for information and guide ~
Jan.21,2022

return a Promise and then chain the call.

    getLocalCity() {
        return new Promise(resolve => {
            wx.request({
                url: "",
                success: res => {
                    // ...
                    return resolve();
                },
            })
        });
    },
    getWeather(){
      // ...  
    },
    onLoad() {
        this.getLocalCity().then(result => {
            this.getWeather();
        });
    }
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-1b36d81-2ad8e.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-1b36d81-2ad8e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?