The sort-function offers just 2-different sort-methods…
https://www.wix.com/velo/reference/wix-data/wixdatasort
You will have to write your sort-function on your own.
Example…
["c", "a", "b"].sort(function(a, b) {
return a.length - b.length || // sort by length, if equal then
a.localeCompare(b); // sort by dictionary order
});