updated for version 7.4.351
Problem:    sort() is not stable.
Solution:   When the items are identical, compare the pointers.
Added tag v7-4-351 for changeset f9ec944e4474