@quesmed/types 2.6.250 → 2.6.251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -346,7 +346,9 @@ function evaluateMark({ mark, answer, questionTypeId, psaSectionId, choices, })
346
346
  data.result = models_1.EMarkResult.Incorrect;
347
347
  break;
348
348
  }
349
- const options = choices.map((o) => o.label);
349
+ const options = choices
350
+ .sort((a, b) => a.label.localeCompare(b.label))
351
+ .map((o) => o.label);
350
352
  const answerIndex = options.indexOf(answer);
351
353
  const attemptIndex = options.indexOf(attempt);
352
354
  if (answerIndex === -1 || attemptIndex === -1) {
@@ -342,7 +342,9 @@ export function evaluateMark({ mark, answer, questionTypeId, psaSectionId, choic
342
342
  data.result = EMarkResult.Incorrect;
343
343
  break;
344
344
  }
345
- const options = choices.map((o) => o.label);
345
+ const options = choices
346
+ .sort((a, b) => a.label.localeCompare(b.label))
347
+ .map((o) => o.label);
346
348
  const answerIndex = options.indexOf(answer);
347
349
  const attemptIndex = options.indexOf(attempt);
348
350
  if (answerIndex === -1 || attemptIndex === -1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.250",
3
+ "version": "2.6.251",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",