Added rating support for inquiry sorting.