Why does .sort_by {(x,y) x} require a "block" to specify the criteria for sorting? Can anything else be written in the block?


#1



Replace this line with your code.


#2

Why would anything else be written in the block passed to sort_by?
Sure you can. Does it have a desirable effect?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.