Make list sort stable, avoid swapping items of equal value
in slurmdb logic, avoid swapping items of equal weight