I have a `Step` class and an `AutoStep` class

```
class Step {
    int StepNumber;
}

class AutoStep {
    int StepNumber;
}

```

They are **NOT** inherited from any class and **CANNOT** inherit from any class.

I have to sort them by StepNumber and call specific method depending on their type(`Step` or `AutoStep`)

How can I do that?