Randić index and lexicographic order