View Single Post
Old 09-03-2011, 10:02 AM  
camperjohn64
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
I also realized, that I don't need to rank the entire database - I only need to check the rank of "the entry before this one" and swap them if the count reverses.

ie:

video A = 45
video B = 44

View B:

video A = 45
video B = 45 (no swap)

View B again:

video A = 45
video B = 46 (swap now, so B is above A)

=>

video B = 46
video A = 45
__________________
www.gimmiegirlproductions.com
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote