TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Optimal shop sorting?

2 pointsby yetiabout 15 years ago
We have an online shop has a lot of user submitted items.<p>Up to now we sort by default by newest, but it's becoming a mess now, hard to find the good items.<p>Are there any algorithms or suggestions for best sorting?<p>We are considering a ranking based on:<p>Sort by revenue generated with a weight for age (previous 24 hours sales * 100 + previous one week sales * 30 + previous months sales * 20 + previous year * 10 or whatever)<p>Any suggestions?

1 comment

ryanteoabout 15 years ago
Hi, I'm new to programming but I'd like to ask a few questions: 1. What's your definition of good items? 2. Do you think your problem sounds like it could be solved by genetic algorithms (provided that computational costs are acceptable)? It seems like a possible way to think about it would be to let the best selling products compete to be on the first page. <a href="http://en.wikipedia.org/wiki/Genetic_algorithm" rel="nofollow">http://en.wikipedia.org/wiki/Genetic_algorithm</a>