added passsing tests for testing sort_by