desktop.ff_backup: preserve same order as in ff for tabs, history index fix