How to include view specific JS file?

According to the document it’s recommended to use asset bundles, then using $this->registerJsFile(). The only information I found so far is to include JS file in $js in AppAsset.php and this will include all JS files in this array globally for all pages. If only selected JS files is required for some view files, what is the best way to define such usage?

I have also tried using $this->registerJsFile() in the specific view file, but the file order is wrong. All the JS files included with registerJsFile comes before the list of $js defined in Asset Bundles. If using this method to include view specific JS files how do you specify the ordering, eg to come after $js in Asset Bundles?

Please advise.

What is your question exactly