Update competition_rank.py

Added the ability to use a function or lambda as your order_by