Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature: add sortable factors like GDP #83

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,38 @@ wcc.getCountryNeighbors(country)
// Example: wcc.getCountryNeighbors('poland')
```

```js
/*
* Get list of all country names sorted by GDP
* @returns {String[]}
*/
wcc.getAllCountriesSortedByGdp()
```

```js
/*
* Get list of all country names sorted by GDP growth
* @returns {String[]}
*/
wcc.getAllCountriesSortedByGdpGrowth()
```

```js
/*
* Get list of all country names sorted by population
* @returns {String[]}
*/
wcc.getAllCountriesSortedByPopulation()
```

```js
/*
* Get list of all country names sorted by homicide rate
* @returns {String[]}
*/
wcc.getAllCountriesSortedByHomicideRate()
```

❗️ All params are **NOT** case sensitive so no matter how argument looks,
the response will remain the same.

Expand Down
Loading