标签: java sorting collections compareto
如何根据值对HashMap进行排序。我试图重载compareTo方法。但是,我意识到我应该使用Integer而不是Float