好库网
package com.hck.book.util;

import java.util.Comparator;
import java.util.HashMap;

/**
 * List拼音比较器
 * 
 * @author yuanhang
 * 
 */
public class PinyinListComparator implements
		Comparator<HashMap<String, Object>> {

	public int compare(HashMap<String, Object> m1, HashMap<String, Object> m2) {
		String com1 = PinyinUtil.getPingYin((String) m1.get("com"));
		String com2 = PinyinUtil.getPingYin((String) m2.get("com"));
		return 链接已屏蔽pareTo(com2);
	}
}