working sort-thingy and rspec