PyCamp / Rockola

Music Server depending on votes
4 stars 3 forks source link

Improve the sort method #1

Open tulku opened 11 years ago

tulku commented 11 years ago

The current sorting algorithm uses plain python sort to get the top 5 songs.

The current implementation produces non deterministic results when many songs have the same vote count. Using better things like itertools could produce much better results.