Refactor: scheduler: functionize resetting sort indexes to node weights
promotion_order() was long and difficult to follow, and now it's not