• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Null values at end of sorted list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Null values at end of sorted list


  • Subject: Re: Null values at end of sorted list
  • From: Art Isbell <email@hidden>
  • Date: Thu, 31 Jan 2008 09:13:45 -1000

On Jan 31, 2008, at 8:34 AM, email@hidden wrote:

For us, it seems that null values should be placed at the end of an ascending sort. More often than not, null values make more sense to be placed at the end of the list when working in our Domain.

Has anyone crossed this bridge before?

Yes, but I just used the very low tech approach of using the standard sorting methods and then iterating (not enumerating) the sorted array moving the EO's with null sorting attributes to the end of the array stopping iteration at the first non-null sorting attribute.

Aloha,
Art

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Null values at end of sorted list (From: email@hidden)

  • Prev by Date: Re: Null values at end of sorted list
  • Next by Date: Re: Partial Form Submit
  • Previous by thread: Re: Null values at end of sorted list
  • Next by thread: NSMutableArray addObject: where is the E?
  • Index(es):
    • Date
    • Thread