Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a dynamic list where users can add additional items to it at any point. However, I also want the items on the list to be ordered based on some sort of rating system. Any ideas on how to do this since new items can be added to the list at any time?

More info:
Users will add items to the list and users will also be able to rate the currently listed items. The list will be sorted based on the ratings the items receive.

The main problem I'm concerned with is the fact that the more recently added items would have a disadvantage in being ordered properly. For example.... Let's say an item was added a month ago and received 10 ratings within that time frame and another item that was added a day ago and received 9 ratings. If the list was ordered simply based on ratings, then item with 10 ratings would be listed before the item with 9 ratings even though it's obvious that the item with 9 ratings is more popular. Something like that.....
Posted
Updated 15-Apr-10 0:58am
v2

1 solution

The obvious way is to use a list and position the new items at their relative position in the list. If items can move in the list, you need to resort when the data changes.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900