---
title: "applyListOrder(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/array/applylistorder(_:)-33po6"
---

# applyListOrder(_:)

Reorders elements in place to match order, preserving elements not in order. Implements USD’s “ordered” list-op semantics.

## Declaration

```swift
mutating func applyListOrder(_ order: [String])
```

## Parameters

- `order`: The desired ordering for elements that appear in both self and order.
