Pseudorank functions working

Events on homepage can now be sorted using Sean's pseudorank algorithm