Fixed sorting of users as per rank

Changed sorted(NAME_DB, ...) to reversed(sorted(NAME_DB, ...))