fix bug with ordering by ranks and null values