Improved voting code, using last_voted_at to fix ordering.