.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

sorting framework

Posted By: rukmender     Posted Date: September 24, 2009    Points:2   Category :C#
The goal is to provide generalized sorting framework (by implementing appropriate design patterns) which can support sorting based on various sorting rules. Main highlights of the requirement are:
. Display data and data based on which sorting is performed are different
. Sorting framework should be easily extensible to support new sorting rules
. Present sorting framework implementation should provide support of at least following sorting:
o Numeric sorting
o String based sorting
o Time stamp based sorting with precision up to millisecond
o Custom rule based sorting
? Example: sorting on a key of format Location-Floor-Desk# (e.g. PUN-01-001)
? This should be sorted first on location, then on floor and then on desk no.
? Sample sorted data
Apply sorting rule like this, in that order:
- Alphabetically on Location name
- Numeric on floor
- Numeric on desk no

Author: Amit Mehra             
Posted Date: September 24, 2009     Points: 5   

Really good One for the beginner...Excellent task for beginner..i request you to keep posting your progress in this forum..

Ok..My first point..if you are looking for the pattern go for Adapter pattern... now you can get the details for Adapter pattern Here


Now second step....Overload the method..but first identify all the possible overload and common function....

Third also identify the query or Stored procedure...???

Please "Mark As Answer " if this post help you.
Author: rukmender             
Posted Date: September 30, 2009     Points: 5   

can anybody post the code for sorting framework please.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend