The main issue is that these algorithms do not have a common parent class or an interface. The sorting function on each class is different in name, number, or in the type of the parameters, so this structure is not sustainable.
Except if there is any previous design decision in these, the whole project needs a refactor.
The main issue is that these algorithms do not have a common parent class or an interface. The sorting function on each class is different in name, number, or in the type of the parameters, so this structure is not sustainable. Except if there is any previous design decision in these, the whole project needs a refactor.