Skip to content

Instantly share code, notes, and snippets.

@dgg
Created August 30, 2013 07:50
Show Gist options
  • Select an option

  • Save dgg/6387304 to your computer and use it in GitHub Desktop.

Select an option

Save dgg/6387304 to your computer and use it in GitHub Desktop.
Model binding dynamic collections. III Ordering sortables
public static IEnumerable<T> Sort<T>(this IEnumerable<T> sortables) where T : IClientSortable
{
return sortables.EmptyIfNull()
.OrderBy(i => i.ClientOrder);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment