Lady Sterling,
Glad you could use that technique!
This is were Java REALLY comes into play. I've been doing a lot with sorting things lately. It's really nice to have a Java Object for a Company and also another for "Contact" at that company. Then say I want to grab a Company object. I can at any time load into they company object all my contacts. So they become indicidual contact objects in a TreeMap or even better just a simple ListArray. So the company object contains an array of Contact objects.
then whenever I need I can send that Array to a repeat control and work with the specific contact objects as if they were documents really.
But here's the best part:
In Java there's this stuff called comparator and comparable. that's for sorting. so I can add these to my contact object. This is the "Sorting Logic". so then from the company object I can pull out my contacts sorted by lastname... or firstname... or state... or whatever really. It's able to sort by a property. It's really powerful I think.
This technique will be coming to NotesIn9 soon. It is Java... but it's so worth it to do.
Dave