[#190]Sort the variants group in the sql query to enhance the
performance