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


Top 5 Contributors of the Month
david stephan

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
BAN-01-001
BAN-01-002
BAN-02-001
BAN-02-002
PUN-01-001
PUN-01-002
PUN-02-001
Apply sorting rule like this, in that order:
- Alphabetically on Location name
- Numeric on floor
- Numeric on desk no

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

Hi,
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

http://www.dofactory.com/Patterns/PatternAdapter.aspx

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

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

Thanks,
Amit
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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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