Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Sorting Items

Items in a list view column can be sorted in ascending or descending order. Items in a container appear in the same sorting order as the items in the parent container. You supply a callback (DataBrowserItemCompareProcPtr) to handle sorting. Your callback can perform simple sorting or more complex sorting, such as the following:

In either of the complex cases, your callback must keep track of previous sort operations and preserve sorting orders for secondary and tertiary items.



< Previous PageNext Page > Hide TOC


Last updated: 2007-08-07




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice