---
title: sortedAttributes
framework: IOBluetooth
role: symbol
role_heading: Instance Property
path: iobluetooth/iobluetoothsdpservicerecord/sortedattributes-swift.property
---

# sortedAttributes

Returns a sorted array of SDP attributes

## Declaration

```swift
var sortedAttributes: [Any]! { get }
```

## Return Value

Return Value Returns a sorted array of SDP attributes

## Discussion

Discussion This method will walk all the elements of the service record and return an array of IOBluetoothSDPServiceAttribute objects sorted by attributeID
