Skip to content

Lige-w/alphabetize-in-esperanto-dc-web-career-040119

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

View Alphabetize in Esperanto on Learn.co and start learning to code for free.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%