Fixed the ordering of the update orders by sorting through rel_wt