public static List<someclass> OrderAsc(
List<someclass> object,
specific_field_by_someone )
{
return object.OrderBy(...get field to be sorted...);
}
I just want to make data structure like this
Dictionary<string, ???> data_table = new Dictionary<string, ????>() {
{"id", x => x.id },
{"name", x => x.name }
}
that can be used with
object.OrderBy(data_table["name"])...