Contents

sortedCookies(using:)

Returns all of the cookie storage’s cookies, sorted according to a given set of sort descriptors.

Declaration

func sortedCookies(using sortOrder: [NSSortDescriptor]) -> [HTTPCookie]

Parameters

  • sortOrder:

    The sort descriptors to use for sorting, as an array of Nssortdescriptor objects.

Return Value

The cookie storage’s cookies, sorted according to sortOrder, as an array of HTTPCookie objects.

See Also

Retrieving cookies