<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INMediaSortOrder",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:@E@INMediaSortOrder"
  },
  "title" : "INMediaSortOrder"
}
-->

# INMediaSortOrder

Constants indicating the sort order for the found media items.

```
enum INMediaSortOrder
```

## Topics

### Constants

[`INMediaSortOrderUnknown`](/documentation/Intents/INMediaSortOrder/unknown)

The sort order is unknown.

[`INMediaSortOrderNewest`](/documentation/Intents/INMediaSortOrder/newest)

The app sorts the media items from newest to oldest.

[`INMediaSortOrderOldest`](/documentation/Intents/INMediaSortOrder/oldest)

The app sorts the media items from oldest to newest.

[`INMediaSortOrderBest`](/documentation/Intents/INMediaSortOrder/best)

The app sorts the media items from best to worst.

[`INMediaSortOrderWorst`](/documentation/Intents/INMediaSortOrder/worst)

The app sorts the media items from worst to best.

[`INMediaSortOrderPopular`](/documentation/Intents/INMediaSortOrder/popular)

The app sorts the media items from the most to least popular.

[`INMediaSortOrderUnpopular`](/documentation/Intents/INMediaSortOrder/unpopular)

The app sorts the media items from the least to most popular.

[`INMediaSortOrderTrending`](/documentation/Intents/INMediaSortOrder/trending)

The app sorts the media items with those trending the most first.

[`INMediaSortOrderRecommended`](/documentation/Intents/INMediaSortOrder/recommended)

The app sorts the media items with those it recommends first.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)