This repository has been archived by the owner on Mar 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: decompose should preserve ordering of query results (#531)
* Add failing test * Fix: Decomposed results are not ordered correctly The issue was caused by a behavior of Object.keys() which sorts integer keys numerically. This fix ensures that the keys are strictly treated as strings by simply prefixing a non-numeric character onto each id used as a key in the decompose mapping. * Fix test broken by previous fix
- Loading branch information
Showing
2 changed files
with
83 additions
and
11 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