Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- matches.sort_by do |match|
- if(match[1].nil? && match.last == 6)
- "1 #{match.first}"
- elsif(not match[1].nil? && match.last == 6)
- "2 #{match.first}"
- elsif(match.last == 4)
- "3 #{match.first}"
- elsif(match.last == 7)
- "4 #{match.first}"
- else
- "5 #{match.first}"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement