Sort List Asp.net

private void SortEntities(List _entities)
{
_entities.Sort(delegate(salary_processEntity x, salary_processEntity y)
{
return new employeesDAO().SelectOne(x.employee_code).employee_name.CompareTo(new employeesDAO().SelectOne(y.employee_code).employee_name);
});
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s