When you have NULL values in the column and a sort is applied, the decision whether the NULLs should come first or last varies per database type.
MARIADB / MYSQL / SQLSERVER
If you specify the ORDER BY clause, NULL values by default are ordered as less than values that are not NULL. Using the ASC order, a NULL value comes first before any non-NULL value; using DESC order, the NULL comes last.
DB2 / ORACLE / POSTGRESQL
If you specify the ORDER BY clause, NULL values by default are ordered as more than values that are not NULL. Using the ASC order, a NULL value comes after any non-NULL value; using DESC order, the NULL comes first.
And yes, there are some “hacks” for this using hand coding but, that’s not currently possible in Wappler as it just uses what the database returns.