How to specify the order of Javascript calls? I have a call to drupal_add_js() in hook_block_view_alter() and another one in template_preprocess_page().

I need that the order in which the Javascript is printed in the screen of the browser is just as written. What is the preference in which the content is loaded in the page? Can it be controlled?
If you want to enforce the order of your scripts, declare them as libraries via hook_library() and list one as dependency for the other.