# Activity Configuration: Defining activity order

> Reference for the Activity_order field used as a tiebreaker when two events share the same timestamp in Process Mining data transformations for Automation Suite.

The `Activity_order` field is used as a tie breaker when two events are happening on the same timestamp.

## Option 1: SQL configuration

The following code shows an example of configuring `Activity_order` with a SQL `CASE` statement:

```
    case
            when tableA."Activity" = 'ActivityA'
                then 1
            when tableA."Activity" = 'ActivityB'
                then 2
            when tableA."Activity" = 'ActivityC'
                then 3
            when tableA."Activity" = 'ActivityD'
                then 4
    end as "Activity_order"
```

## Option 2: CSV seeds file

Instead of using a SQL `CASE` statement, you can define `Activity_order` using the `activity_configuration.csv` file .

The following illustration shows an example `activity_configuration.csv` file:

![Example activity_configuration.csv file](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-example-activity-configuration-csv-file-14497-96370c3a-328167e7.webp)

## Recommendations

Most UiPath app templates come with predefined fields for activity configuration, which you can adapt to your specific business requirements. If predefined fields are unavailable or insufficient, you can always create custom fields using either SQL or the `activity_configuration.csv` seeds file, as outlined.
