How to sort user built classes by a native type

G

GregSR

I'd like to know if .Net has something that would make the
following easier:

Pass an array (no more than 300 elements) of classes and a
class property name (property would be either string or
int) to a method that would return
the array with the classes sorted in either ascending or
descending order based on the class property name. The
purpose of
this method would be to allow users to sort a table
containing, for example, employee ID's and employee names,
in ascending or
descending order without returning to the database.

Is there something in .Net that would make this easier to
accomplish?

thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top