File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
app/code/Magento/SalesGraphQl/Model/Resolver/CustomerOrders/Query Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \GiftRegistryGraphQl \Mapper \GiftRegistryDataMapper ;
14
14
15
15
/**
16
- *
16
+ * Order sort allows to sort the collection by the specified field and direction
17
17
*/
18
18
class OrderSort
19
19
{
20
+ /**
21
+ * The sortable field mapper name
22
+ */
20
23
private const SORTABLE_FIELD_MAP = 'CustomerOrderSortableField ' ;
21
24
22
25
/**
@@ -42,7 +45,7 @@ public function __construct(
42
45
}
43
46
44
47
/**
45
- *
48
+ * Create an array of sort orders for sorting customer orders by the specified field and direction
46
49
*
47
50
* @param array $args
48
51
* @return SortOrder[]
@@ -58,7 +61,7 @@ public function createSortOrders(array $args): array
58
61
}
59
62
60
63
/**
61
- *
64
+ * Get sort field
62
65
*
63
66
* @param string $field
64
67
* @return string
You can’t perform that action at this time.
0 commit comments