A sort is stable when elements with equal keys keep, in the output, the order they had in the input.
Computer Science · Glosarium
Computer Science · Glosarium
A sort is stable when elements with equal keys keep, in the output, the order they had in the input.