Scala Map按value排序

coupon_score: Map[String,double]
coupon_score.toArray.sortWith(_._2 > _._2)

你可能感兴趣的:(Scala Map按value排序)