How to change the sorting order of the following shipping methods in order to keep the prioritize USPS And UPS
For your requirement, you can use the sorting procedure. You can get this through the Magento admin panel.
In Magento admin Store -> Configuration -> Sales(left menu) -> Shipping Methods -> Choose your desired shipping method and give the sort order.
You can find the Sort Order textbox for every shipping method. By giving the low valued numbers, you can get your requirement.