diff --git a/koodi.rb b/koodi.rb index 932f2b3..4405461 100644 --- a/koodi.rb +++ b/koodi.rb @@ -1 +1,5 @@ # kirjoita koodi tänne + +def arvojarjestys(hashi) + hashi.values.reject { |x| x < 0 }.sort +end \ No newline at end of file