improved calculation of realtime standings with ranking number

works with direct comparison, but needs clean up of functions