The list-items-orderby block allows the user order by the items of an list. The options for order is alphabetically or addition date.

ListItemsOrderByListItemsOrderBy

Configuration

  1. Import the vtex.list app to your theme's peer dependencies in the manifest.json file as in the following example:
  "peerDependencies": {
    "vtex.list": "3.x"
  }
  1. Add the list-items-orderby block to other theme block inside a list context, such as the store.list or store.guest. For example:
  "store.list":{
    "children": [
      flex-layout.col
    ]
  },

  "flex-layout.col": {
    "children": [
+     "list-items-orderby"
    ],
  }