Cool, that was the problem I was having. I knew about the wonders of splice but just didn't think of using sort to prevent the indexes from becoming invalidated after doing the first splice.
Thanks a lot!
Comment on RE: Re: Removing certain elements from an array