Sorting items stably in the bkg script too.