Skip to content

Commit 7c05460

Browse files
authored
use the SORT_NATURAL flag for sorting attributes (#896)
this allows numeric values to show up their expected order. Previously an attribute with various numeric values would show up in the following order: 0-50 101-250 250+ 51-100 After the change they will show up as: 0-50 51-100 101-150 250+
1 parent 1ef8910 commit 7c05460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: blocks/community_product_filter/controller.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public function view()
304304
}
305305

306306
foreach ($attributemapping as $attrhandle => $values) {
307-
ksort($attributemapping[$attrhandle]);
307+
ksort($attributemapping[$attrhandle], SORT_NATURAL);
308308
}
309309
}
310310

0 commit comments

Comments
 (0)