This seems difficult to do. The relational database does not have a concept of "first". So you can't easily tell it which of the property types you want to order by. You could write
query := Query read: Item where: [:each | ... ].
query orderBy: [:each | each properties type].
which should work, but will have many duplicates of the items, one for each property that they have. Normally if you put in something like an alsoFetch: #properties then it would avoid the duplicates because it will see them coming back and condense duplicates. But if we've set the sort order to make them occur at different places in the result set then this won't work.
At 05:42 PM 3/26/2009, VAM wrote:
--
Alan Knight [|], Engineering Manager, Cincom Smalltalk
[hidden email]
[hidden email]
http://www.cincom.com/smalltalk_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc