Facet range slider wrong sorting

Created on 22 February 2024, 4 months ago

Problem/Motivation

When using float values for the range slider the sorting from postQuery of the results can be wrong sometimes.

Steps to reproduce

Run this code:

$x = [
['value' => 1.7530000209808],
['value' => 0.74042397737503]
];
	
    uasort($x, function ($a, $b) {
      return (int) $a['value'] - $b['value'];
    });
🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇷🇴Romania szloredan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024