-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle different optionsFieldType (#971)
Originally, I thought running a toString() on the displayName would handle number display names. But, string.prototype.localeCompare doesn't work with number strings the way I hoped it would. If you try to sort an array of numbers like [100, 20, 120], the result will be [100, 120, 20] rather than the expected [20, 100, 120]. My unit tests only had single digit numbers, so they didn't run test that case. TEST=auto J=SLAP-1631
- Loading branch information
Showing
2 changed files
with
88 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters