Modular page ordering

Hi all. I have a problem with ordering module on my page. I have a modulars on category page.How to correctly order modular pages by taxonomy or some other another mark? Please help
I have the folowing code in category.md

title: Carts
menu: Carts
subtitle: Super Lightweight Carts
description: 'some description'
content:
    items:
      '@taxonomy.category': carts
    order:
        by: folder
        dir: asc

If you are talking about modular pages specifically you can simply use:

content:
    items: @self.modular
    order:
        by: default
        dir: asc

if you wish to use taxonomy then your approach should work too.