We have a system that is based around Events that Users are invited to [UserInvite].
Currently, I have a page that lists all the Users invited to an Event; they can be sorted by various properties, such as Surname [ascending and descending]. All fine and dandy, but now I'm required to additionally sort by a UserInvite property: DateEdited [again asc/desc]. I've been using an extension method that takes in a string of the property name to sort by, but this won't work for another class's property.
Notes:
- UserInvite has a method to get by Event and User which always returns a single UserInvite [or null if no invite was found].
- The current EventID is held in the Master page so can be reached on the page that lists the Users
What is the best way to do this?