Skip to content
QA Playground
← Back to challenge

Compare your findings.

A matter of order

Requirement

Price: low to high must order products by numeric price.

Reproduce

  1. Start with prices $9.00, $25.00 and $100.00.
  2. Choose Price: low to high.
  3. Read the resulting order.

Expected result

$9.00, $25.00, $100.00.

Actual result

$100.00, $25.00, $9.00.

Why it happens

The exercise compares price strings lexicographically instead of numeric values.

Sample report

Title: Numeric sorting does not meet its requirement
Prerequisites: Open the challenge and reset its fixture.
Steps:
1. Start with prices $9.00, $25.00 and $100.00.
2. Choose Price: low to high.
3. Read the resulting order.
Expected: $9.00, $25.00, $100.00.
Actual: $100.00, $25.00, $9.00.
Evidence: Attach a screenshot of the resulting workspace.

This defect exists only in this exercise. The practice shop and validation lab use correct behavior.