Skip to content

Commit cd4621c

Browse files
committed
NTR - remove default sorting
1 parent 26589ef commit cd4621c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Shop/BrowseSearchStruct.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class BrowseSearchStruct
1414

1515
protected int $page = 1;
1616

17-
protected string $sort = '_PRODUCT.price:desc';
17+
protected string $sort = '';
1818

1919
public function setQuery(string $query): void
2020
{

tests/Shop/BrowseSearchStructTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function testDefaultValues()
1818
$this->assertSame([], $struct->getFilters());
1919
$this->assertSame(10, $struct->getPerPage());
2020
$this->assertSame(1, $struct->getPage());
21-
$this->assertSame('_PRODUCT.price:desc', $struct->getSort());
21+
$this->assertSame('', $struct->getSort());
2222
}
2323

2424
public function testSetAndGetQuery()

0 commit comments

Comments
 (0)