* Makes items with equal q-values return in the original provided order. * Fixes tests to reflect this behavior