Skip to content

learn-co-students/alphabetize-in-esperanto-000

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tags languages resources
collections, iteration, hashes, arrays, sorting, bonus
ruby
2

Alphabetize in Esperanto

Introduction

Esperanto is one of the most popular international auxiliary languages. These are languages meant for communication between people from different nations who do not share a common native language.

Objective

Write a method that will take an array of strings and sort them alphabetically based on the Esperanto alphabet. The Esperanto alphabet is pretty similar to the English alphabet, as you can see:

ESPERANTO_ALPHABET = "abcĉdefgĝhĥijĵklmnoprsŝtuŭvz"

Example

For instance, the array below:

["mi amas vin", "bonan matenon", "pacon", "ĉu vi parolas esperanton"]

Should become:

["bonan matenon", "ĉu vi parolas esperanton", "mi amas vin", "pacon"]

If you'd like to know what these phrases or words translate to, translate them on Google Translate.

Hints

Think about how you would do this using the sort_by method.

Resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages