Change module's weight - by module or manualy I am looking for solution how to change particular module's weight in D7. I know that it is possible to do in config tables in database, but I don't know how. Another solution that I found in Drupal.org is to use hooks - but I need more detail explanation or some guidance where I could get some tutorials about that. 

The thing that I need to do is to make some priorities of some particular modules higher for it to load faster than other modules as otherwise they will not work. One of the examples is video streaming using Lightbox2 popup watching that on Safari browser on OS X - it's not loading until you change the priority of Lightbox module.
Since it was explicitly asked, there is also a module, Modules weight, that performs this task as well.


  We always need to modify modules execution order, and some could write
  a code that execute a query to modify the weight of a module in system
  table, some might go straight to his favorite SQL client and modfiy
  the record directly, This module provide admin interface for
  users/people has the access to modules page to reorder the module
  weights as they want