Fix stability of heapq's nlargest() and nsmallest().
3 files changed