Yes, take a look at [man]usort[/man] or [man]uasort[/man].
Although your array structure looks a bit backwards to me. Shouldn't you put your numeric index first and then the associative db_name and db_type keys second? I suggest calling print_r on your array and looking at what comes out.