Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

Add support for foreign currency sorting#265

Merged
glittershark merged 1 commit intoglittershark:masterfrom
dis-aster-ous:foreign-currency-sort
Mar 31, 2016
Merged

Add support for foreign currency sorting#265
glittershark merged 1 commit intoglittershark:masterfrom
dis-aster-ous:foreign-currency-sort

Conversation

@dis-aster-ous
Copy link
Contributor

Instead of assuming a string will start with a '$', this will filter
any currency symbol before passing it to the numerical sort.

Instead of assuming a string will start with a '$', this will filter
any currency symbol before passing it to the numerical sort.

switch (child.type) {
case _thead.Thead:
break;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not really sure why this happened...

Copy link
Owner

Choose a reason for hiding this comment

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

the build/ file gets out of sync all the time. Need to find a way to make Travis fail if that's the case.

@glittershark
Copy link
Owner

Sweet, thanks!

ReactableTestUtils.expectRowText(10, ['a']);
ReactableTestUtils.expectRowText(11, ['z']);
});
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was the quickest way for me to get a breaking test. currently thinking of ways to optimize this, but for now it works. open to input, but otherwise i'll replace this commit once i think of something better.

Copy link
Owner

Choose a reason for hiding this comment

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

I'm cool with this

@glittershark
Copy link
Owner

TODO: need to split up that damn test file into multiple files so Babel doesn't truncate it.

@glittershark glittershark merged commit ce4f988 into glittershark:master Mar 31, 2016
glittershark added a commit that referenced this pull request Apr 19, 2016
+ Add support for custom filters (#267)
+ Add support for sorting foreign currencies (#265)
* Filter thead from table children warning (#264)
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.

2 participants

Comments