private static void sortResults(Map results) {
		// TODO Auto-generated method stub
		TreeSet sortedResults = new TreeSet(
				new Comparator(){
					@Override
					public int compare(Object o1, Object o2) {
						// TODO Auto-generated method stub
						User user1 = (User)o1;
						User user2 = (User)o2;
						/*如果compareTo返回结果0，则认为两个对象相等，新的对象不会增加到集合中去
						 * 所以，不能直接用下面的代码，否则，那些个数相同的其他姓名就打印不出来。
						 * */
						
						//return user1.value-user2.value;
						//return user1.value<user2.value?-1:user1.value==user2.value?0:1;
						if(user1.value<user2.value)
						{
							return -1;
						}else if(user1.value>user2.value)
						{
							return 1;
						}else
						{
							return user1.name.compareTo(user2.name);
						}
					}
					
				}
		);
		Iterator iterator = results.keySet().iterator();
		while(iterator.hasNext())
		{
			String name = (String)iterator.next();
			Integer value = (Integer)results.get(name);
			if(value > 0)
			{				
				sortedResults.add(new User(name,value));				
			}
		}
		
		printResults(sortedResults);
	}