Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Sort language in dropdown alphabetically #462

Merged
merged 3 commits into from
Aug 26, 2016
Merged

Sort language in dropdown alphabetically #462

merged 3 commits into from
Aug 26, 2016

Conversation

haritsE
Copy link
Contributor

@haritsE haritsE commented Aug 26, 2016

Summary

Sort languages in the dropdown alphabetically.
Issue: #57

@ahmedre
Copy link
Contributor

ahmedre commented Aug 26, 2016

Deployed to: http://staging.quran.com:32820

@haritsE
Copy link
Contributor Author

haritsE commented Aug 26, 2016

Just realized that the .sort((current, next) => current.name - next.name); in the slugs declaration doesn't work. Should I put the function there instead?

@ahmedre
Copy link
Contributor

ahmedre commented Aug 26, 2016

Deployed to: http://staging.quran.com:32821

@@ -4,6 +4,22 @@ import MenuItem from 'react-bootstrap/lib/MenuItem';

const style = require('./style.scss');

const compareAlphabetically = property =>
(a, b) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps make it more specific, as in (previous, next) ?

@mmahalwy
Copy link
Contributor

@haritsE that would be awesome!

@ahmedre
Copy link
Contributor

ahmedre commented Aug 26, 2016

Deployed to: http://staging.quran.com:32822

@mmahalwy
Copy link
Contributor

@haritsE let me know when this is ready :)

@haritsE
Copy link
Contributor Author

haritsE commented Aug 26, 2016

@mmahalwy done 👍

@mmahalwy
Copy link
Contributor

Thank you!

@mmahalwy mmahalwy merged commit b58ad51 into quran:master Aug 26, 2016
thabti pushed a commit to thabti/quran.com-frontend that referenced this pull request Aug 27, 2016
* sort language alphabetically

* use compareAlphabetically on the slugs declaration

* rename sort function params
@haritsE haritsE deleted the hotfix/sort-lang-dropdown branch December 6, 2016 03:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants