```python
ls=[]
a,b,c=0,0,0
for i in range(10):
toupiao=input("Input the name of candidate:")
ls.append(toupiao)
for j in ls:
if j=='Lily':
a+=1
elif j=='John':
b+=1
else:
c+=1
houxuan={"Lily":0,"John":0,"Rose":0}
houxuan["Lily"]=a
houxuan["John"]=b
houxuan["Rose"]=c
list_hx = list(houxuan.items())
print(list_hx.sort(key=lambda x:x[1],reverse=True))
想让他的输出结果为
Lily : 5
Rose : 3
John : 2
为什么结果是None?谢谢
```