django-DefectDojo icon indicating copy to clipboard operation
django-DefectDojo copied to clipboard

'Active (Verified)' column sorts lexicographically instead of numerically in Engagements view

Open kdyck-cb opened this issue 3 years ago • 0 comments

Description

When sorting by the Active (Verified) column in the various engagements lists, the items are sorted lexicographically (a.k.a alphabetically) instead of numerically.

Here's an example taken from a 'Closed Engagements' list on the v 2.12.0 public demo environment image source

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to the /product/<product-id>/engagements page.
  2. Click on the Active (Verified) column on one of the engagement lists.
  3. See that the items are sorted lexicographically instead of numerically.

Expected behavior

Since the values in the Active (Verified) column are numeric, they should be sorted numerically, not lexicographically.

Environment information

Observed in v 2.10.0 and v 2.12.0.

kdyck-cb avatar Jul 29 '22 12:07 kdyck-cb