Sort query by x-data

Enonic version: 6.15.6
OS: Linux

Hello, I’m trying to sort a query in content lib using x-data, doing something like: sort: ‘ ASC’ but it doesn’t work. Am I writing it wrong? Doing that because I wanted to set base:folder as top of my result giving all folder node that x-data value, what I’m doing right is to create a new folder content type.

To get help, please post your entire query, x-data and content types.

It does work. I don’t know why, but I assumed that results that did not have the x-data value (of type long) would appear first as it be 0, what actually happens is that it sort results that contains that x-data input first then puts everything else after. Thanks anyway.