holman/play — pull request #55 by medwards (2011-12-05 23:22:33+00:00)
Title: Select correct section of history for displaying recently played songs.

The recently played song list is selected from the history using the created_at column which defaults (at least on my setup) to ascending which means you get the oldest songs in the history.

Instead, select in descending order X+1 records (the +1 is for the song which is currently playing). Then reverse the order so they go in ascending order when displayed and remove the current song (the last element in the collection).