已有 2002 人访问
兔宝贝 ID.12851
博客(1)
兔宝贝的博客

#sort_byshouldjusttakeoneblockparameter,anitemfromthearray,andsortsbasedontheresultoftheblock.[1,2,3].sort_by{xx}=>[1,2,3][1,2,3].sort_by{x-x}=>
379°/3790 人阅读/16 人点赞/0 条评论