It’s a common algorithmic need.

Not as common as array sort. But still common.