LNK-4658: Fix sorting when there are 10 or more query plan items - #1380
Conversation
📝 WalkthroughWalkthroughThe PR modifies query sorting logic in PatientDataService to order InitialQueries and SupplementalQueries by numeric key values rather than lexicographic order. This addresses incorrect deferral of double-digit reference queries (e.g., key "10" was sorted before "2" alphabetically). Additionally, unit tests are added to validate numeric-based sorting behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🛠️ Description of Changes
Fix sorting when there are 10 or more query plan items.
🧪 Testing Performed
Local testing and E2E.
🧑🔬 Unit Testing
📓 Documentation Updated
N/A
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.