Recommendations are not always the same when the objects are equal

Use stable sort instead