Login Skip Navigation LinksWilsonORMapper > Forums Search
Demo Version Demo Version
Download and try for yourself a fully working demo version, including sample apps and documentation.  The only limitation is that the demo version only works inside the debugger.

PayPal Subscribe
Get It All for $50 USD:
WebPortal, ORMapper,
Source Code, All Updates
PayPal

User Login User Login
Log In
 
 
Reset Password

Wilson ORMapper Forums Wilson ORMapper Forums : Feature Requests : Sorting feature

Date Post
12/23/2005 9:19:50 AM Howdy again Paul! Hope you have a nice holiday.

Quick question. I know you can give entities a default sort order in the mapping xml file. However, it would be nice this default sort order was also available on relations/properties. For example, in a customer object, I might want the customer's address property to sort by zipCode by default, but for the Employee class I might want its address property to sort by city.

something like:

<relation relationship="OneToMany" member="_addressCollection" field="employeeId" alias="AddressCollection" type="Address" lazyLoad="true" defaultSort="City ASC" />

Not a necessity since you can always query using a different sorty. Just a "Nice to have" to think about in a future version.
12/23/2005 2:12:38 PM That's a good idea I'll consider.

Thanks, Paul Wilson
1/8/2006 2:12:36 PM Pual, I'm going to second this, if you have time. I cant tell you how many times I have looked in the documation for this feature. I even have added the attribute thinking it was there a couple times. Thanx.
2/20/2006 3:06:44 AM Hey Paul,

I've just gone looking for this too. Without considering the consequences too much, I'd find a defaultSort pretty useful.

Tim.
4/11/2006 2:15:14 AM See latest news on the Subscriber Preview v4.2.2.1.