Click here to Skip to main content
15,886,769 members
Articles / Programming Languages / C#

Generic Multi-Field/Property Sorting for Lists of Business Objects

Rate me:
Please Sign up or sign in to vote.
4.89/5 (13 votes)
13 Feb 2008CPOL8 min read 75.2K   496   72  
This article presents a simple and flexible way to sort strongly-typed lists of business objects using multiple properties or fields.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HyperPropertyDescriptor", "HyperPropertyDescriptor\HyperPropertyDescriptor.csproj", "{954502B1-7282-417D-9310-3332962A1CA1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HyperPropertyDescriptorSample", "HyperPropertyDescriptorSample\HyperPropertyDescriptorSample.csproj", "{B81DCBBD-4295-4CC4-8451-859D244FCAAC}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{954502B1-7282-417D-9310-3332962A1CA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{954502B1-7282-417D-9310-3332962A1CA1}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{954502B1-7282-417D-9310-3332962A1CA1}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{954502B1-7282-417D-9310-3332962A1CA1}.Release|Any CPU.Build.0 = Release|Any CPU
		{B81DCBBD-4295-4CC4-8451-859D244FCAAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{B81DCBBD-4295-4CC4-8451-859D244FCAAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{B81DCBBD-4295-4CC4-8451-859D244FCAAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{B81DCBBD-4295-4CC4-8451-859D244FCAAC}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Troppus Software
United States United States
Currently working as a Senior Silverlight Developer with Troppus Software in Superior, CO. I enjoy statistics, programming, new technology, playing the cello, and reading codeproject articles. Smile | :)

Comments and Discussions