# doGetOrder method

1. @protected

int? doGetOrder(

1. Object? obj

)

Internal method to extract order value from various source types.

This protected method handles the actual extraction of order values from different types of order sources.

### Supported Source Types:

- Ordered interface implementations
- Raw integer values
- Other types return null (handled by fallback)

### Parameters:

- `obj`: The order source object to extract value from

### Returns:

The extracted order value, or null if not supported

## Implementation

    @protected
    int? doGetOrder(Object? obj) {
      if (obj is Ordered) {
        return obj.getOrder();
      }

      if (obj is int) {
        return obj;
      }

      return null;
    }