Driver core: add bus_sort_breadthfirst() function