fix homepage sort issue