added sort fallbacks for items of equal values