Extract finding RUBIES to a function.
Test that RUBIES are sorted.