cross platform way to sort rubies