Rarest first


Added support for rarest first.